Closed arteme closed 1 year ago
Looks like the blame is on the PocketPOD drivers... When closing Midi input, midir
will call midiInReset
, then midiInStop
then more logic and finally midiInClose
.
There are many different code samples: https://cpp.hotexamples.com/examples/-/-/midiInStop/cpp-midiinstop-function-examples.html all calling these functions in a different order. Also, examples of broken drivers: https://github.com/LMMS/lmms/issues/3920
Either way, calling either midiInReset
or midiInStop
hangs and never returns.
If the app is closed using the "x" button while the PocketPOD is sending its programs, the app will become unresponsive and needs to be killed. Only applicable to Windows WinMM build, WinRT build seems to behave like pod-ui on other platforms, correctly closing the app.