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

Playlist in NAudio

Sep 20, 2012 at 8:53 AM

Hello everyone,

Now I'm working on an audioplayer project, that requires playing multiple audio files one by one, just like some kind of playlist. For playing it uses DirectSoundOut.

Well, at this point I don't know how to implement this. Should I use event like playbackStopped (when current song has ended) and recreate output stream? Or there is simplier way to do this?

Please, help.

Coordinator
Sep 25, 2012 at 6:31 AM

hi, I've written a bit about how to do this here. Probably for your use I would keep the soundcard open, and use a custom IWaveProvider whose Read method moves onto the next file in the playlist after reaching the end of one.