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

When playback ends?

Dec 12, 2011 at 11:05 AM

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 11:17 AM

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

Dec 12, 2011 at 11:59 AM

PlaybackStopped occurs only after Stop() method.

Dec 12, 2011 at 12: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 1:03 PM

My version is 1.4. Is 1.5 stable?

Dec 12, 2011 at 1:04 PM

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


Dec 13, 2011 at 10: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 12: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