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


PlaybackStopped event not raised when playing mp3 is finished


Please make the PlaybackStopped event to be a reliable way to determine when plaback is over.
Closed Oct 27, 2012 at 8:28 AM by markheath


markheath wrote Nov 7, 2010 at 8:38 PM

For PlaybackStopped to work you need the WaveProvider to actually stop providing data. If you are using WaveChannel32 then it will emit zeroes never-endingly (unless you set PadWithZeroes to false).

markheath wrote May 27, 2011 at 9:23 PM

NAudio 1.5 will raise PlaybackStopped for all output models. However, if you pass in a never-ending stream, it will never end (no surprises there).
It will also do its best to make the PlaybackStopped event safe to use by calling it on the GUI thread. See my blog post for more details: