diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-20 23:29:39 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-20 23:29:39 +0800 |
commit | 32568af90e5c521c68432a7e77b6dd8bf524adde (patch) | |
tree | e2bed775bf9953f26ad94531da2a20ec9f967482 /core/qmpmidiplay.cpp | |
parent | b68f60e023175b144664de092c31416fa5b58880 (diff) | |
download | QMidiPlayer-32568af90e5c521c68432a7e77b6dd8bf524adde.tar.xz |
UI refinements and fix to two memory leaks.
Minor improvement in MIDI reading process.
Diffstat (limited to 'core/qmpmidiplay.cpp')
-rw-r--r-- | core/qmpmidiplay.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/qmpmidiplay.cpp b/core/qmpmidiplay.cpp index 43ae17e..ab312f7 100644 --- a/core/qmpmidiplay.cpp +++ b/core/qmpmidiplay.cpp @@ -291,12 +291,14 @@ void CMidiPlayer::playerPanic(bool reset) { if(reset) { - fluid_synth_pitch_bend(synth,i,8192); + fluid_synth_cc(synth,i,0,0); fluid_synth_cc(synth,i,7,100); fluid_synth_cc(synth,i,10,64); fluid_synth_cc(synth,i,11,127); + fluid_synth_cc(synth,i,32,0); } fluid_synth_cc(synth,i,64,0); + fluid_synth_pitch_bend(synth,i,8192); //all sounds off causes the minus polyphone bug... fluid_synth_all_notes_off(synth,i); if(deviceusage[i])for(int j=0;j<16;++j) |