Re: does logic 8 handle parametername changes ?
Re: does logic 8 handle parametername changes ?
- Subject: Re: does logic 8 handle parametername changes ?
- From: William Stewart <email@hidden>
- Date: Mon, 19 May 2008 12:20:03 -0700
In the audio unit hosting apps you can see what the host (your view in
this case) is doing:
// now that we've potentially changed the values of the parameter we
// should notify any listeners of this change:
AudioUnitParameter changedUnit;
changedUnit.mAudioUnit = mTargetUnit;
changedUnit.mParameterID = kAUParameterListener_AnyParameter;
AUParameterListenerNotify (NULL, NULL, &changedUnit);
What this does is send a notification out that any of the parameters
for this audio unit could have changed. This is the only notification
you need to send. It is the responsibility of the VIEW or whichever
code that is running (typically the host app does this). Your audio
unit should not be doing anything. So, you do not need to make these
PropertyChanged calls in your audio unit. If you take these out, you
will see that with the generic view in AULab the preset changes work
just fine. (Open up two generic view on your audio unit and set a
preset in one of them)
Bill
On May 18, 2008, at 6:47 AM, Robert Fehse wrote:
What i do when a user changes a presets (which changes param names)
from my
gui is this:
PropertyChanged
(kAudioUnitProperty_ParameterList,kAudioUnitScope_Global,stat
ic_cast<AudioUnitElement>(-1));
PropertyChanged
(kAudioUnitProperty_PresentPreset,kAudioUnitScope_Global,0);
This works in AULab and Live.
Robert
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden