Mixing of Audio Files

Posted on 1999-08-01
Medium Priority
Last Modified: 2013-11-20
Platform : VC++ 6.0 , Windows NT

I have one small problem.

I want to mix two audio files which was recorded from the full duplex telephonic conversation.
These two files was generated from the callee and the caller during conversation.
The length of two files are exactly same (say x bytes of audio data).
I would like to mix and interleave the two files so that they should play as though it is
a telephonic conversation.
The final output file should have the same play time as it was with a single file.

Are there any multimedia API's to perform the above task.

Or is there a way to do this task by some means.


Have A Nice Day !!!
Vipin Palawat
Tel: 91-80-8520408 Extn:2155
mailto: vipinpal@wipsys.soft.net
Question by:vipinpal
  • 2
  • 2

Author Comment

ID: 1312261
Wants a comment from experts in Multimedia
LVL 23

Accepted Solution

chensu earned 60 total points
ID: 1312262
Use DirectSound. See

DirectSound Mixer Sample

By the way, Microsoft used to provide a DLL called WaveMix on the Multimedia JumpStart CD-ROM. And it came with the source code and documentation. You can write your own mixing code in your case. I did exactly the same thing. The WaveMix can be found at ftp://ftp.microsoft.com/developr/drg/Multimedia/Jumpstart/WAVEMIX/.

Author Comment

ID: 1312263
Is this the only way to do the mixing?
LVL 23

Expert Comment

ID: 1312264
There are three methods in my answer.

1. DirectSound
2. WaveMix
3. Write your own code

No other ways so far.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question