• 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
Re: AudioUnitEvent Listener
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioUnitEvent Listener


  • Subject: Re: AudioUnitEvent Listener
  • From: William Stewart <email@hidden>
  • Date: Thu, 19 Feb 2004 10:57:41 -0800

The AnyParameter "ID" is to notify, but not to listen to.. .There's an example of using this in AUHosting (where the preset is changed, and the code issues a notification that essentially says, check to see if any parameter's value has changed, and if so notify the listener)...

You have to register explicitly for every parameter you want to listen too. The GenericView does this (the code for this is in the SDK already) for an example of how to use this.

AUEventListener just extends the parameter listener to create semantics for both property listening/notification and the begin/end gestures... but uses the existing functionality (and is compatible with) the original parameter listener

Bill

On 19/02/2004, at 9:39 AM, 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, &param);

// 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.


-- mailto:email@hidden
tel: +1 408 974 4056

________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __
_______________________________________________
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.
References: 
 >Re: AudioUnitEvent Listener (From: Robert Grant <email@hidden>)

  • Prev by Date: AudioConverterFillBuffer failure
  • Next by Date: Re: AudioUnitEvent Listener
  • Previous by thread: Re: AudioUnitEvent Listener
  • Next by thread: Re: AudioUnitEvent Listener
  • Index(es):
    • Date
    • Thread