Re: Parameters & Listeners & Host & Cocoa
Re: Parameters & Listeners & Host & Cocoa
- Subject: Re: Parameters & Listeners & Host & Cocoa
- From: Marc Poirier <email@hidden>
- Date: Thu, 18 Dec 2003 15:14:56 -0600 (CST)
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, ¶mEvent);
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? 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.