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

When playback ends?

Dec 12, 2011 at 12:05 PM

Hi, I play a wav file. How do I know, when it ends? I mean, I must do some action when playback is over, but user didn't stopped it manually.

Dec 12, 2011 at 12:17 PM

the WaveOut class (and the others) have a PlaybackStopped event you can wait for

Dec 12, 2011 at 12:59 PM

PlaybackStopped occurs only after Stop() method.

Dec 12, 2011 at 1:25 PM

what version of NAudio are you using? It may well be different in the latest as I did some work on PlaybackFinished for 1.5 a while ago.


Dec 12, 2011 at 2:03 PM

My version is 1.4. Is 1.5 stable?

Dec 12, 2011 at 2:04 PM

1.5 isn't released yet, but will be very close to what is already in source control.


Dec 13, 2011 at 11:28 AM

So is there any way in 1.4 to check if playback is finished, or we just have to wait? :)

Dec 13, 2011 at 1:45 PM

easiest option is for you to get latest from source control and build your own version. lots of bug fixes and improvements since 1.4