• 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: 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, &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? 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.

  • Prev by Date: Re: What exception to launch when AudioConverterDataSupplier fails?
  • Next by Date: What's new in quicktime 6.5 ?
  • Previous by thread: Re: Parameters & Listeners & Host & Cocoa
  • Next by thread: Re: Parameters & Listeners & Host & Cocoa
  • Index(es):
    • Date
    • Thread