On Dec 30, 2009, at 11:03 PM, William Stewart wrote:
On Dec 31, 2009, at 7:42 AM, Stephen Davis wrote:
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.
It doesn't? Can we get a bug report written, as I'm not aware that this has stopped working. The one issue that did come up was that providing NULL for the object parameter was failing (and I'm not sure that this every worked, as I seemed to remember having problems with this myself a while ago)
/*!
@function AUEventListenerNotify
@abstract Deliver an AudioUnitEvent to all listeners registered to receive it.
@discussion This is only to be used for notifications about parameter changes (and gestures).
It can not be used for notifying changes to property values as these are
internal to an audio unit and should not be issued outside of the audio unit itself.
@param inSendingListener
A parameter listener generating the change and which does not want to
receive a callback as a result of it. May be NULL.
@param inSendingObject
The object generating the change and which does not want to receive a
callback as a result of it. NULL is treated specially when inListener is
non-null; it signifies that none of the specified listener's objects will
receive notifications.
@param inEvent
The event to be delivered.
@result An OSStatus error code.
*/
AUEventListenerNotify() is failing with paramErr if mEventType = kAudioUnitEvent_PropertyChange.