206 |
} |
} |
207 |
|
|
208 |
void MidiInputDeviceCoreMidi::MidiInputPortCoreMidi::onNewSourceDisappeared(MIDIEndpointRef source) { |
void MidiInputDeviceCoreMidi::MidiInputPortCoreMidi::onNewSourceDisappeared(MIDIEndpointRef source) { |
209 |
//TODO: remove source from 'bindings' list eventually |
std::vector<MIDIEndpointRef>::iterator iter = std::find(bindings.begin(), bindings.end(), source); |
210 |
|
if (iter != bindings.end()) { |
211 |
|
dmsg(1,("CoreMIDI source '%s' disappeared, disconnecting it.\n", _getDisplayName(source).c_str())); |
212 |
|
bindings.erase(iter); |
213 |
|
} |
214 |
} |
} |
215 |
|
|
216 |
|
|