Not seeing MIDI setup changes without MIDINotifyProc
Not seeing MIDI setup changes without MIDINotifyProc
- Subject: Not seeing MIDI setup changes without MIDINotifyProc
- From: Igor Clark <email@hidden>
- Date: Sat, 07 Apr 2018 12:37:34 +0100
Hi folks,
Question in the subject might sound odd, but I've got a C system which
for various reasons has 2 separate processes A and B, each with its own
MIDIClient object.
Client A has a MIDINotifyProc callback, which works fine and receives
MIDINotifications.
Client B doesn't run as the main thread in its process (and can't
because of the way the system is set up), and so it doesn't have a
MIDINotifyProc, because (AFAICT) running outside the main runloop it
doesn't (and can't) receive MIDINotifications.
When I add or remove a MIDI device to or from the system, client A's
MIDINotifyProc gets called as expected, and client A can see the new
source, destination and device lists correctly. However client B doesn't
see anything different, even after calling MIDIRestart() (although that
causes a MIDINotification to be sent to client A!).
I'm not sure what's happening under the hood, but it seems like client B
has some caching or similar behavior. I do need to be able to see
changes in client B in order to respond to them though. Can anyone
explain, or have any ideas on how to address this?
Thanks very much!
Igor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden