• 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: Wed, 30 Aug 2006 07:54:02 +0200

Hi Artemiy,

On 29.08.2006, at 23:19, Artemiy Pavlov wrote:

This will compile but won't work. Also, according to Stiwi's suggestion (BTW I am not sure how you call SetParameter and GetComponentInstance without the object, at my side it raises an error and I have to add mAudioUnit to them), I had:


That's right. This is of course pseudo code and needs some extra work. 


mAudioUnit->SetParameter( kTempo, HostTempo );

AudioUnitParameter param;

param.mAudioUnit = mAudioUnit->GetComponentInstance();

param.mScope = kAudioUnitScope_Global;

param.mParameterID = kTempo;

AUEventListenerNotify(NULL, NULL, &param);


But this raises an error:


error: cannot convert 'AudioUnitParameter*' to 'const AudioUnitEvent*' for argument '3' to 'OSStatus AUEventListenerNotify(AUListenerBase*, void*, const AudioUnitEvent*)'


That's not the call i suggested. I used AUParameterListenerNotify(NULL, NULL, &param); in my code snippet instead of AUEventListenerNotify as Bill suggested.
Of course this code above will fail because it needs a AudioUnitEvent instead of an AudioUnitParameter.

If you want to use AUEventListenerNotify please follow Bills example code.

All the best,

stiwi
 _______________________________________________
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:
    • CoreMIDI SysEx & MIDIMonitor
      • From: "David A. Hoatson" <email@hidden>
References: 
 >Audio Units: calling SetParameter from within Process() (From: Artemiy Pavlov <email@hidden>)
 >Re: Audio Units: calling SetParameter from within Process() (From: stiwi <email@hidden>)
 >Re: Audio Units: calling SetParameter from within Process() (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: Re: Logic not responding to Audio Engine Changes?
  • 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: CoreMIDI SysEx & MIDIMonitor
  • Index(es):
    • Date
    • Thread