NAudio
NAudio copied to clipboard
crash when NAudio.Wave.DirectSoundOut.Dispose
.net 5 NAudio 2.0.1 Windows 10 10.0.17134
.net 5+ doesn't seem to support Thread.Abort() ref:thread-abort-obsolete
Detail:
Exception Type: System.PlatformNotSupportedException
Message: Thread abort is not supported on this platform.
StackTrace: at System.Threading.Thread.Abort() at NAudio.Wave.DirectSoundOut.Stop() at NAudio.Wave.DirectSoundOut.Dispose()
it's hard to reproduce as the Thread.Abort only gets called in an error scenario. I'll consider removing it.
But really I'd recommend using WasapiOut or WaveOutEvent going forwards unless there is some reason you really need Direct Sound