Creating a stereo WAV file using C
I am looking at creating a WAV file in C and have seen an example here . This looks good, but I'm interested in adding two buffers to make the audio stereo (the possibility to have different sound in each ear) . If I set the number of channels to two, the audio plays out of the left channel only (which apparently is right, as the left channel is the first channel). I have read I must interleave it with the right channel. Unfortunately I haven't found much online to help create a stereo WAV. write_little_endian((unsigned int)(data[i]),bytes_per_sample, wav_file); I've tried to create a second