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

Stream mp3 file over aSynchronous server/client

Jun 8, 2011 at 2:10 PM


I have a server/client setup that uses aSynchronous sockets. Now i also want to stream a mp3 thats saved local on the server to the client. I've searched the forum but havent found a solution yet. Could someone push me in the right direction?
I already can convert my mp3 into a PCMStream and send this back to the client using a byte[].

If someone has a better option then the above feel free to comment :)

Thanks in advance!

Jun 8, 2011 at 2:35 PM

Not entirely sure what you are trying to achieve, but if you look in the latest NAudio source code there is an example in the NAudioDemo app of playing streaming MP3 radio which may point you in the right direction


Jun 8, 2011 at 3:40 PM

Thanks for the reply

I've seen the demo but i cant figure out how to play a mp3 thats on a local server. The concept is almost the same as spotify or grooveshark. Multiple clients login on my server and stream the audio.

Hopefully this clears things up.

Jun 8, 2011 at 7:27 PM

ok, NAudio doesn't really have anything for broadcasting audio. You'd be best off asking on somewhere like stackoverflow.