Property Listener for parameter values?
Property Listener for parameter values?
- Subject: Property Listener for parameter values?
- From: Marc Poirier <email@hidden>
- Date: Wed, 20 Nov 2002 19:05:26 +0100 (CET)
If an Audio Unit changes one of its parameters internally (like in
response to a MIDI event, for example), what is the best way for it to
post some sort of notification of that change to any listeners (host app,
GUI, etc.)?
There doesn't appear to be a kAudioUnitProperty_ParameterValue or anything
like that, so PropertyChanged() would appear to not be an option.
I've looked into AUParameterSet, but I'm not sure if that is something
that an Audio Unit should be using internally. But if it is okay, would
something like this be legit:
AudioUnitParameter param;
param.mAudioUnit = this;
param.mParameterID = theChangedParameterID;
param.mScope = kAudioUnitScope_Global;
param.mElement = 0;
OSStatus result = AUParameterSet(NULL, NULL, ¶m,
theChangedParameterValue, 0);
Thanks for any advice,
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.