• 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: Artemiy Pavlov <email@hidden>
  • Date: Wed, 30 Aug 2006 00:19:00 +0300

Hello all!

William: thanks for the reply and the tip!

I tried the example in "CAAUMIDIMapManager":

	mAudioUnit->SetParameter( kTempo, HostTempo );

	AudioUnitParameter event;

event.mEventType = kAudioUnitEvent_ParameterValueChange;
event.mArgument.mParameter.mAudioUnit = mAudioUnit- >GetComponentInstance();


	AUEventListenerNotify(NULL, NULL, &event);

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:

		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*)'


Sorry guys I'd really need to do more reading but I have very poor C+ + and all these objects and stuff is really hard for me at this point in time... :-(



Thanks again very much,

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


  • Follow-Ups:
    • Re: Audio Units: calling SetParameter from within Process()
      • From: stiwi <email@hidden>
    • Re: Audio Units: calling SetParameter from within Process()
      • From: stiwi <email@hidden>
    • Re: Audio Units: calling SetParameter from within Process()
      • From: "Sophia Poirier [dfx]" <email@hidden>
    • Re: Audio Units: calling SetParameter from within Process()
      • From: William Stewart <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>)

  • 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