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

Naudio Play Multiple file continuously

Sep 22, 2016 at 8:05 AM
I have using Naudio waveoutevent. In that i want to play multiple file continuously without cap. When current file before going to stop next file start to played.

Current song and next songs play without cap play continuously Please help me to do thsi.
Its very urgent requirements.
Oct 4, 2016 at 2:26 PM
To do this, you should make a custom IWaveProvider class whose Read method reads from your first file, and then when that reaches the end, starts reading from the next one and so on.

There is already a class that you could use called ConcatenatingSampleProvider which you could pass a bunch of AudioFileReader instances into. They would all need to have same WaveFormat for this to work
Marked as answer by athivarathan on 10/6/2016 at 5:27 AM