tags:

views:

77

answers:

2

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?

Thanks in advance!

+1  A: 

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

Waleed Al-Balooshi
+1 Looks like a pretty good resource for this.
Robert Harvey
I agree, thanks a lot!
refugee
+2  A: 

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.

Conrad Albrecht
P.S. Suggest you add the "Audio" tag to your question.
Conrad Albrecht
Thanks, I added the tag.I had already checked out that specific page, so I'm kind of 'updated' about the WAV format, it's more about the C# implementation now.Thank you anyway!
refugee
+1 Excellent reference about the wav file format. I am bookmarking this page for sure.
Waleed Al-Balooshi