diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-04-19 23:59:07 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-04-19 23:59:07 +0800 |
commit | 20d25423952b4bb2f54b695cefce509d895d89b2 (patch) | |
tree | b48fac3a5a56eb27147f8aa9797961be523027b8 /core/qmpmidioutrtmidi.cpp | |
parent | 3e3a5e7ba353a02ac29c86eb94214d98a6c17bb7 (diff) | |
download | QMidiPlayer-20d25423952b4bb2f54b695cefce509d895d89b2.tar.xz |
Fix unintended control values sent to external midi devices.
Diffstat (limited to 'core/qmpmidioutrtmidi.cpp')
-rw-r--r-- | core/qmpmidioutrtmidi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/qmpmidioutrtmidi.cpp b/core/qmpmidioutrtmidi.cpp index 3ed8a4a..2f7125e 100644 --- a/core/qmpmidioutrtmidi.cpp +++ b/core/qmpmidioutrtmidi.cpp @@ -194,6 +194,7 @@ void qmpMidiOutRtMidi::deviceInit() try { outport=new RtMidiOut(); + reset(0xFF); } catch(RtMidiError &e) { @@ -337,6 +338,7 @@ void qmpMidiOutRtMidi::setInitializerFile(const char* path) { if(devinit)delete devinit; devinit=qmpDeviceInitializer::parse(path); + reset(0xFF); } std::vector<std::pair<qmpMidiOutRtMidi*,std::string>> qmpRtMidiManager::devices; |