• 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
bastardizing AUEventListenerNotify() no longer working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bastardizing AUEventListenerNotify() no longer working?


  • Subject: bastardizing AUEventListenerNotify() no longer working?
  • From: Stephen Davis <email@hidden>
  • Date: Wed, 30 Dec 2009 12:42:12 -0800

For a little test project I was abusing AUEventListenerNotify() to send property change notifications from my input render callback to the main thread but, as has been discussed previously, AUEventListenerNotify() no longer lets you send kAudioUnitEvent_PropertyChange notifications.  Unfortunately, switching to the kAudioUnitEvent_ParameterValueChange version doesn't seem to work b/c faking the mAudioUnit parameter by casting a non-ComponentInstance pointer into it is failing in the call to AUEventListenerAddEventType() when setting up the listener.

Fair enough, I was abusing the API (test project!).  I was doing so because it is a convenient API to use for sending messages from the render thread callback to my main thread, on the assumption that the underlying mechanism was implemented in a "don't take locks on the RT thread if at all possible" way.

So, before I roll my own, is there something hiding in the CA PublicUtility classes that is a recommended way to do such low-impact messaging?

thanks,
stephen _______________________________________________
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: bastardizing AUEventListenerNotify() no longer working?
      • From: William Stewart <email@hidden>
  • Prev by Date: Audio MixerUnit output writing problem.
  • Next by Date: Re: plugin development
  • Previous by thread: Audio MixerUnit output writing problem.
  • Next by thread: Re: bastardizing AUEventListenerNotify() no longer working?
  • Index(es):
    • Date
    • Thread