• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Not seeing MIDI setup changes without MIDINotifyProc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Not seeing MIDI setup changes without MIDINotifyProc
      • From: Igor Clark <email@hidden>
  • Prev by Date: implementing a custom audio decoder for iOS?
  • Next by Date: Re: Not seeing MIDI setup changes without MIDINotifyProc
  • Previous by thread: implementing a custom audio decoder for iOS?
  • Next by thread: Re: Not seeing MIDI setup changes without MIDINotifyProc
  • Index(es):
    • Date
    • Thread