atsushieno / managed-midi

[Past project] Cross-platform MIDI processing library for mono and .NET (ALSA, CoreMIDI, Android, WinMM and UWP).
MIT License
194 stars 26 forks source link

Fixed a lock-up on closing WnMM Midi devices #74

Closed Androvald closed 1 year ago

Androvald commented 1 year ago

I found and fixed an issue with WinMM midi devices not disposing / closing correctly due to lock contention of the "lockObject". This would delay closes by 10 seconds and possibly not clean up buffers correctly.

atsushieno commented 1 year ago

Thanks for the patch. It was code contributed by @noname22 so let me wait for any possible comments for a day-ish. If no problem is found then I will merge it.

atsushieno commented 1 year ago

merging. Thanks again!