Synchronize UDP MIDI channels

pull/868/head
probonopd 2 months ago committed by GitHub
parent d18252a67f
commit e5818632f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/minidexed.cpp

@ -2432,6 +2432,10 @@ bool CMiniDexed::InitNetwork()
if (!m_UDPMIDI) {
LOGERR("CMiniDexed::InitNetwork: Failed to allocate UDP MIDI device");
// Clean up other network resources if needed, or handle error appropriately
} else {
// Synchronize UDP MIDI channels with current assignments
for (unsigned nTG = 0; nTG < m_nToneGenerators; ++nTG)
m_UDPMIDI->SetChannel(m_nMIDIChannel[nTG], nTG);
}
}
LOGNOTE("CMiniDexed::InitNetwork: returning %d", m_pNet != nullptr);

Loading…
Cancel
Save