• 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: Parameters & Listeners & Host & Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parameters & Listeners & Host & Cocoa


  • Subject: Re: Parameters & Listeners & Host & Cocoa
  • From: William Stewart <email@hidden>
  • Date: Fri, 9 Jan 2004 14:30:08 -0800

Marc,

To answer your question here.

On 18/12/2003, at 1:14 PM, Marc Poirier wrote:

I don't think that there was ever an answer when I asked this before, so
let me try again, cuz I'm still wondering:

If some of these "underlying mechanisms" are still the same, does that
mean that this:

AudioUnitEvent paramEvent;
paramEvent.mEventType = kAudioUnitEvent_ParameterValueChange;
paramEvent.mArgument.mParameter.mAudioUnit = theAUInstance;
paramEvent.mArgument.mParameter.mParameterID = theParameterID;
paramEvent.mArgument.mParameter.mScope = kAudioScope_Global;
paramEvent.mArgument.mParameter.mElement = 0;
AUEventListenerNotify(NULL, NULL, &paramEvent);

and this:

AudioUnitParameter auParam;
auParam.mAudioUnit = theAUInstance;
auParam.mParameterID = theParameterID;
auParam.mScope = kAudioScope_Global;
auParam.mElement = 0;
AUParameterListenerNotify(NULL, NULL, &auParam);

do the same thing? Or do they do anything different?

Same thing - so, if you have the later AudioToolbox framework installed, you only have to call the AUEventListener calls and existing parameter listeners will receive the notifications.

Bill

I know that the
begin/end gesture stuff is all different, but I'm unclear as to whether
or not the parameter value change stuff is in the end doing the same
thing.

I want to know if I can just use AUEventListenerNotify for parameter value
changes and if they will still be picked up by listeners created using
AUListenerCreate and AudioUnitAddPropertyListener or if I need to do the
"double approach" (AUEventListenerNotify and AUParameterListenerNotify)
for parameter value change notifications, too.

Thanks,
Marc
_______________________________________________
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
______________________________________________________________________ ____



--
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.
  • Prev by Date: Re: writing aiff file to disk
  • Next by Date: Re: HALOutputUnit (Pt 1)
  • Previous by thread: Re: Parameters & Listeners & Host & Cocoa
  • Next by thread: Re: What exception to launch when AudioConverterDataSupplier fails?
  • Index(es):
    • Date
    • Thread