From cd8432e47e1e9b332f2d5682ce4c796a94a29de8 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 1 Jul 2019 22:33:53 +0800 Subject: Actually send initialization sequence to external devices. Replace hardcoded initial CC values with values from device property API. --- core/qmpmidioutfluid.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core/qmpmidioutfluid.cpp') 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); -- cgit v1.2.3