midiInReset triggers the sysex callback to tell the application that it has finished with the buffer. Calling midiInAddBuffer results in an infinite loop so just return during shutdown.
9cabc1b
Initialize uninitialized variable (m_started), remove cruft.
TODO: Use MMCSS to elevate thread priorities Enable/test and fix SYSEX related code