Re: SetParameter() and view update notification, continued
Re: SetParameter() and view update notification, continued
- Subject: Re: SetParameter() and view update notification, continued
- From: William Stewart <email@hidden>
- Date: Fri, 1 Sep 2006 17:31:03 -0700
you have to install a listener for this parameter, so you can know
when it changes (when the notification fires)
The call you want is AUListenerAddParameter - there's some example
usages of this (or the preferred AUEventListenerAddEventType version)
in the Carbon view code in the SDK (/Developer/Examples/CoreAudio)
Bill
On 01/09/2006, at 3:03 PM, Artemiy Pavlov wrote:
Hello all!
At first I would like to thank all of you especially Stiwi and
William for giving me so many tips to dig a bit deeper into Audio
Units.
I have almost managed to do what I want using Stiwi's suggestions.
I say almost because I have this sketch code (no matter if it's
executed once per frame or per buffer):
mAudioUnit->SetParameter( kTempo, HostTempo );
AudioUnitParameter param;
param.mAudioUnit = mAudioUnit->GetComponentInstance();
param.mScope = kAudioUnitScope_Global;
param.mParameterID = kTempo;
AUParameterListenerNotify(NULL, NULL, ¶m);
But the Tempo slider is only updated when I close and re-open the
view, not in realtime with the Tempo fader movement in the host. I
am using Garage Band by the way (AULab and Wave Editor don't let me
test this feature anyhow as I see).
Thanks a lot for any hints,
Artemiy.
_______________________________________________
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
--
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
________________________________________________________________________
__
_______________________________________________
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