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

Problem with NAUDIO and REALTEK

Mar 23, 2015 at 11:05 AM

I have an issue with WaveOut and REALTEK. When I disconnect speakers, the audio driver are automaticaly desactivated and the audio playback stop but the PlaybackStopped event is not raised. The PlaybackState property has Play value but a call to Stop() freeze my application.
How to handle this ?

Thank you
Apr 13, 2015 at 4:09 PM
that doesn't sound good. have you checked you have the latest realtek drivers? There can be problems with them. Also, what callback mechanism are you using? Can you try with WaveoutEvent instead?
Apr 14, 2015 at 8:47 AM

Yes I try with the latest REALTEK drivers. I have the same problem with another computer with REALTEK. It seems that WaveOut dislike the desactivation of the driver.
I'm using WaveOut like this :

_WaveOutDevice = new WaveOut(WaveCallbackInfo.FunctionCallback())

I will try with WaveOutEvent ASAP.

Thank you for your answer
Apr 14, 2015 at 12:19 PM
yes, avoid function callbacks. They are often the cause of deadlocks.