Re: Audio Units: calling SetParameter from within Process()
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, ¶m);
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