cwIoMidiRecordPlay.cpp : Do not initialize disabled MIDI devices.

This commit is contained in:
kevin 2022-05-14 12:37:11 -04:00
parent 10652f1b45
commit 09e371ba93

View File

@ -862,10 +862,12 @@ cw::rc_t cw::midi_record_play::create( handle_t& hRef, io::handle_t ioH, const o
p->halfPedalMidiPedalVel = 127;
for( unsigned i=0; i<
p->midiDevN; ++i)
for( unsigned i=0; i<p->midiDevN; ++i)
{
midi_device_t* dev = p->midiDevA + i;
if( !p->midiDevA[i].enableFl )
continue;
if((dev->midiOutDevIdx = io::midiDeviceIndex(p->ioH,dev->midiOutDevLabel)) == kInvalidIdx )
{