Click here to Skip to main content
15,889,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I need to separate stereo wave file into two mono wave file using C++, please anyone help me on this.



Thanks in Advance.
Posted

You have several options:
  • Study the WAV file format (you might start from Wikipedia[^]) and implement yourself the code for moving the stereo channels out.
  • Use a library, you might find many of them available on the web.
  • Use an external program, like, for instance audacity[^], to perform the task.
 
Share this answer
 
If calling an external executable is an option, you might use FFmpeg[^].

See https://trac.ffmpeg.org/wiki/AudioChannelManipulation[^] for an example to write the channels of a stereo wav file to two mono files.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900