Permalink
Browse files

Work-around for Core MIDI bug that doesn't announce new devices

  • Loading branch information...
michaeltyson committed Nov 9, 2015
1 parent 3035de6 commit e2f940821a3bd4281e16b703b7281f7b57b93999
@@ -169,7 +169,8 @@ static void midiNotify(const MIDINotification * message, void * inRefCon) {
switch ( message->messageID ) {
case kMIDIMsgObjectAdded:
case kMIDIMsgObjectRemoved: {
case kMIDIMsgObjectRemoved:
case kMIDIMsgSetupChanged: {
if ( message->messageID == kMIDIMsgObjectRemoved ) {
MIDIObjectAddRemoveNotification * notification = (MIDIObjectAddRemoveNotification *)message;
SEMIDIEndpoint * source = [[SEMIDIEndpoint alloc] initWithEndpoint:notification->child];
@@ -207,7 +207,8 @@ static void midiNotify(const MIDINotification * message, void * inRefCon) {
switch ( message->messageID ) {
case kMIDIMsgObjectAdded:
case kMIDIMsgObjectRemoved: {
case kMIDIMsgObjectRemoved:
case kMIDIMsgSetupChanged: {
if ( message->messageID == kMIDIMsgObjectRemoved ) {
MIDIObjectAddRemoveNotification * notification = (MIDIObjectAddRemoveNotification *)message;
SEMIDIEndpoint * destination = [[SEMIDIEndpoint alloc] initWithEndpoint:notification->child];

0 comments on commit e2f9408

Please sign in to comment.