Re: AudioUnitEvent Listener
Re: AudioUnitEvent Listener
- Subject: Re: AudioUnitEvent Listener
- From: Marc Poirier <email@hidden>
- Date: Thu, 19 Feb 2004 14:10:03 -0500 (EST)
One thing is that you don't want scope of AnyParameter. Most likely the
scope for the parameters you want is 0, unless you have some reason to
know that the AU also has parameters on other scopes.
The only other thing I can think of is if m_listenerRef is null, if you
didn't AUListenerCreate it, or if that failed.
Marc
On Thu, 19 Feb 2004, Robert Grant wrote:
>
A follow up - rereading the docs, headers etc helped me find:
>
kAUParameterListener_AnyParameter which answers my question about
>
watching for any parameters. However when I try to add this parameter
>
to my listener (which was successfully created) I get -50!
>
>
Here's my code for setting up the parameter:
>
>
AudioUnitParameter param;
>
param.mParameterID = kAUParameterListener_AnyParameter;
>
param.mAudioUnit = m_unit;
>
param.mScope = kAUParameterListener_AnyParameter;
>
param.mElement = kAUParameterListener_AnyParameter;
>
>
status = AUListenerAddParameter(m_listenerRef, self, ¶m);
>
>
// status returns with -50
>
>
Thanks for any pointers,
>
>
Robert.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.