• 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: SetParameter() and view update notification, continued
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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, &param);

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


  • Follow-Ups:
    • Re: SetParameter() and view update notification, continued
      • From: Artemiy Pavlov <email@hidden>
References: 
 >SetParameter() and view update notification, continued (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: SetParameter() and view update notification, continued
  • Next by Date: Re: SetParameter() and view update notification, continued
  • Previous by thread: SetParameter() and view update notification, continued
  • Next by thread: Re: SetParameter() and view update notification, continued
  • Index(es):
    • Date
    • Thread