This project has moved. For the latest updates, please go here.

Play internet radio

Jun 30, 2012 at 12:53 PM
Edited Jun 30, 2012 at 12:54 PM

Hey

I know how to play a wav file but now I want to play an internet stream (internet radio). How can i do this?

Sorry for my terrible english - I'm from Germany...

Greetings Crosaider

Coordinator
Jul 1, 2012 at 7:55 AM

If you look at the NAudioDemo code, you will see an MP3 streaming demo which gives an idea of how to accomplish this. Basically you would use a BufferedWaveProvider to play from, and decode audio and put it into that BufferedWaveProvider as it arrives. You also need to do some kind of buffer management to ensure that playback doesn't stutter too much.