Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


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
Question by:vipinpal
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

661 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