Skip to content

Commit

Permalink
Work-around for Core MIDI bug that doesn't announce new devices
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltyson committed Nov 9, 2015
1 parent 3035de6 commit e2f9408
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -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];
Expand Down
Expand Up @@ -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];
Expand Down

0 comments on commit e2f9408

Please sign in to comment.