hi everyone
could anyone plz show me how to mix two PCM wavs into one n also how to change the volume levels of them.
thanx
hi everyone
could anyone plz show me how to mix two PCM wavs into one n also how to change the volume levels of them.
thanx
http://www.wotsit.org/
Get the file format you're interested in
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
i know the format man but i need the logic to mix two wav files n to change the volume of the wav files. help me out plz coz i got a deadline with 3 projects on my head
Here's how:
Code:typedef char sample; //or whatever sample sound1[ length ] = ... sample sound2[ length ] = ... sample output[ length ]; for (int i=0;i<length;++i) output[i] = (sound1[i] + sound2[i]) / 2;
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling