bastardizing AUEventListenerNotify() no longer working?
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