Mixing sounds

Started by
5 comments, last by LJ 20 years, 2 months ago
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.
Advertisement
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
Thank you, but not so - my aim is to get ONE ".wav" from some ".wav" on input.
u could try looking up code to an old MOD reply routine, they would have the code to mix 2 sounds to 1
Sorry, I didn''t understand - to look WHERE?
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]
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

This topic is closed to new replies.

Advertisement