How to assemble a WAV file?
2 answers
I used this page to understand the WAV format:
https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
Some of the wrinkles that I found when reading real WAV files are missing, but there is enough good information to write them and quite easy to understand.
+2
a source to share
The following article doesn't contain the exact source code you need, but reading it and the four blog entries that are listed in it should point you in the right direction.
http://blogs.msdn.com/coding4fun/archive/2010/05/03/10006604.aspx
+1
a source to share