ZynSubAddFx routed all MIDI cc messages to channel 0

Lmms routes all midi notes to ZSAF on channel 0, however the CC messages
not routed, and could erronusoly be sent on other channels. This would
lead to ZSAF not acting on these midi commands

This pull request routes All Midi CC messages to channel 0

fixes #1953
This commit is contained in:
Dave French
2015-04-18 22:46:58 +01:00
parent 435a15d8bf
commit 2ac6d5df7a

View File

@@ -350,14 +350,16 @@ bool ZynAddSubFxInstrument::handleMidiEvent( const MidiEvent& event, const MidiT
return true;
}
MidiEvent localEvent = event;
localEvent.setChannel( 0 );
m_pluginMutex.lock();
if( m_remotePlugin )
{
m_remotePlugin->processMidiEvent( event, 0 );
m_remotePlugin->processMidiEvent( localEvent, 0 );
}
else
{
m_plugin->processMidiEvent( event );
m_plugin->processMidiEvent( localEvent );
}
m_pluginMutex.unlock();