aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidioutfluid.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-07-01 22:33:53 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-07-01 22:33:53 +0800
commitcd8432e47e1e9b332f2d5682ce4c796a94a29de8 (patch)
tree9091d98efe995bcd11439115200f02d3083c07be /core/qmpmidioutfluid.cpp
parenteb82292b5d8818a5ef1a0c92e35390bd4e22674e (diff)
downloadQMidiPlayer-cd8432e47e1e9b332f2d5682ce4c796a94a29de8.tar.xz
Actually send initialization sequence to external devices.
Replace hardcoded initial CC values with values from device property API.
Diffstat (limited to 'core/qmpmidioutfluid.cpp')
-rw-r--r--core/qmpmidioutfluid.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/qmpmidioutfluid.cpp b/core/qmpmidioutfluid.cpp
index ac6523f..e9bc6b1 100644
--- a/core/qmpmidioutfluid.cpp
+++ b/core/qmpmidioutfluid.cpp
@@ -100,6 +100,7 @@ void qmpMidiOutFluid::panic(uint8_t ch)
}
void qmpMidiOutFluid::reset(uint8_t ch)
{
+ if(!~ch){fluid_synth_system_reset(synth);return;}
this->panic(ch);
for(int i=0;i<128;++i)
fluid_synth_cc(synth,ch,i,0);