• 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: Audio Units: calling SetParameter from within Process()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Units: calling SetParameter from within Process()


  • Subject: Re: Audio Units: calling SetParameter from within Process()
  • From: stiwi <email@hidden>
  • Date: Tue, 29 Aug 2006 21:42:22 +0200

Hi Artemiy, sorry for the delay. This should do it.  

1. Get the tempo

Float64 bpm;
OSStatus err = mAudioUnit->CallHostBeatAndTempo(NULL, &bpm);


2. Set the parameter if  tempo has changed and notify the listeners

if (err == noErr && bpm != mBpm)
{
mBpm = bpm;
Globals()->SetParameter(YourParameterId, YourValue);

AudioUnitParameter param;

param.mAudioUnit = GetComponentInstance();
param.mScope = kAudioUnitScope_Global;
param.mParameterID = YourParameterId;

AUParameterListenerNotify(NULL, NULL, &param);
}



 _______________________________________________
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: Audio Units: calling SetParameter from within Process()
      • From: Artemiy Pavlov <email@hidden>
References: 
 >Audio Units: calling SetParameter from within Process() (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: Re: Audio Units: calling SetParameter from within Process()
  • Next by Date: Re: Audio Units: calling SetParameter from within Process()
  • Previous by thread: Re: Audio Units: calling SetParameter from within Process()
  • Next by thread: Re: Audio Units: calling SetParameter from within Process()
  • Index(es):
    • Date
    • Thread