Reputation: 71
After having successfully received and extracted audio samples from Ethernet UDP packets at the PC, I need to assemble them to a WAV file, in C#.
Any example code? Any suggestions?
Upvotes: 2
Views: 683
Reputation: 2066
I used this page to understand WAV format:
https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
It's missing some wrinkles I found in reading real-world WAV files, but it should be good enough info for writing them, and pretty easy to understand.
Upvotes: 2
Reputation: 6406
The following article doesn't provide the exact source code that you need, but reading it and the four blog posts that are listed in it should steer you in the correct direction.
http://blogs.msdn.com/coding4fun/archive/2010/05/03/10006604.aspx
Upvotes: 1