Fix for SYSEX treatment.

pull/195/head
Holger Wirtz 3 years ago
parent ffa0bfd096
commit c7ca66ab1d
  1. 2
      CMSIS_5
  2. 7
      src/mididevice.cpp

@ -1 +1 @@
Subproject commit 18205c6c2b68e7e96f40dc941c47efdbdd9f7d01
Subproject commit a3936b6605ad0a78680d6a25d8ebc27fe156f31e

@ -149,6 +149,10 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
u8 ucChannel = ucStatus & 0x0F;
u8 ucType = ucStatus >> 4;
if(ucStatus == MIDI_SYSTEM_EXCLUSIVE) // No MIDI channel information in SYSEX
HandleSystemExclusive(pMessage, nLength, ucChannel);
else
{
for (unsigned nTG = 0; nTG < CConfig::ToneGenerators; nTG++)
{
if ( m_ChannelMap[nTG] == ucChannel
@ -271,8 +275,7 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
break;
}
}
else if(ucStatus == MIDI_SYSTEM_EXCLUSIVE) // No MIDI channel information in SYSEX
HandleSystemExclusive(pMessage, nLength, ucChannel);
}
}
}

Loading…
Cancel
Save