Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Stop or Dispose methods hang if USB device undocked while playing wav file

$
0
0

Just wanted to post in case it is useful to other users.  Replacing WaveOut with WaveOutEvent in one of our classes fixed a similar deadlock situation we were experiencing when playing a wav file repeatedly in the same run of the application.  The first play would be successful then subsequent attempts would lock the application.  Quite literally all we had to do was swap the classes and the problem cleared.  Thanks Mr. Heath, extraordinarily useful project!


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>