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

MP3 Stream From Hard Drive

Dec 28, 2012 at 10:45 AM


First of all, thank you for creating such a great library and releasing it for free!  Something I'm struggling to understand though, does the MP3 reader tutorial ( load the whole file before playing?

I'd prefer to stream the mp3 than load it in full so that the application is faster.  To do this, should I use the MP3 streaming tutorial but provide it a local URL, or is there any easier way?

Thanks in advance,


Jan 3, 2013 at 3:17 PM

the MP3 reader does look through the file allowing it to create a "table of contents" so it can support fast and accurate repositioning. You could take a copy of the MP3 file reader code and just remove the TOC generation if you wanted. There is also a demo of streaming MP3 over the internet in NAudioDemo, which obviously by its nature, doesn't read ahead. You simply parse MP3 frames and decompress them.