Fix for sending SYSEX voice dump to all interfaces.

pull/247/head
Holger Wirtz 3 years ago
parent 55e90c6aa1
commit 0b75186c5a
  1. BIN
      src/.mididevice.cpp.swp
  2. 14
      src/mididevice.cpp

Binary file not shown.

@ -458,14 +458,12 @@ void CMIDIDevice::SendSystemExclusiveVoice(uint8_t nVoice, const unsigned nCable
// Get voice sysex dump from TG // Get voice sysex dump from TG
m_pSynthesizer->getSysExVoiceDump(voicedump, nTG); m_pSynthesizer->getSysExVoiceDump(voicedump, nTG);
if (m_DeviceName.compare (m_pConfig->GetMIDIThruIn ()) == 0) TDeviceMap::const_iterator Iterator;
{
TDeviceMap::const_iterator Iterator;
Iterator = s_DeviceMap.find (m_pConfig->GetMIDIThruOut ()); // send voice dump to all MIDI interfaces
if (Iterator != s_DeviceMap.end ()) for(Iterator = s_DeviceMap.begin(); Iterator != s_DeviceMap.end(); ++Iterator)
{ {
Iterator->second->Send (voicedump, sizeof(voicedump)*sizeof(uint8_t), nCable); Iterator->second->Send (voicedump, sizeof(voicedump)*sizeof(uint8_t), nCable);
} LOGNOTE("Send SYSEX voice dump to \"%s\"\n",Iterator->first);
} }
} }

Loading…
Cancel
Save