cwIoMidiRecordPlay.cpp : Do not initialize disabled MIDI devices.
This commit is contained in:
parent
10652f1b45
commit
09e371ba93
@ -862,11 +862,13 @@ 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 )
|
||||
{
|
||||
rc = cwLogError(kInvalidArgRC,"The MIDI output device: '%s' was not found.", cwStringNullGuard(dev->midiOutDevLabel) );
|
||||
|
Loading…
Reference in New Issue
Block a user