This project has moved and is read-only. For the latest updates, please go here.

Play Wave file with waveformat gsm610 as a stream

Apr 29, 2014 at 8:03 AM

Many samples covers the WaveFileReader. It seems to work fine for a gsm610 encoded wave file. But what if, you already have the file as a stream (ex. a MemoryStream). For ex. read in using a restful http service (not using NAudio classes).

How do I use that stream with the NAudio classes to play it?

Furthermore, is there some safe technique to get information about waveformat, bitrate, etc. from the MemoryStream?
Apr 29, 2014 at 8:12 PM
When you say the file as a stream, do you mean it is actually a WAV file, or just the GSM610 data? Look at the NAudio Network Chat demo to see how GSM610 can be decoded and put into a BufferedWaveProvider to play it as it arrives.