Mixing sounds
I have some WAVE files, and I need to mix them to one WAVE file. Can''t you help me - how to do it (or tell where to get some docs about it)?
Thanx, LJ.
For my game I used a quick and dirty method of using Win32 Playsound() to play music in all its glory and DirectSound to play speech.
Save alot of coding effort! :D
Save alot of coding effort! :D
u could try looking up code to an old MOD reply routine, they would have the code to mix 2 sounds to 1
http://www.programmersheaven.com/zone10/cat139/index.htm
http://www.programmersheaven.com/zone10/cat587/index.htm
[edited by - _the_phantom_ on February 6, 2004 5:08:21 PM]
http://www.programmersheaven.com/zone10/cat587/index.htm
[edited by - _the_phantom_ on February 6, 2004 5:08:21 PM]
Techinically: Access the raw sample data from each input. Add them together then divide by the number of input waves.
Practically: Adding then dividing by 2 usually gives optimal results even if you need to mix 50 or 100 waves because of the cumulative effects/averaging.
Mark
Practically: Adding then dividing by 2 usually gives optimal results even if you need to mix 50 or 100 waves because of the cumulative effects/averaging.
Mark
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement