Help needed for Audio Unit Parameter Change Notification
Help needed for Audio Unit Parameter Change Notification
- Subject: Help needed for Audio Unit Parameter Change Notification
- From: "Rémi Thébault" <email@hidden>
- Date: Thu, 25 Oct 2007 17:13:09 +0200
Hello Everybody
I'm Newbie in Audio Unit development (and non-professionnal). I intend
to make a passthru effect unit that indicates the main frequency of
the sound going through it (using fft).
So I just need one parameter for the moment : named kParam_NoteFreq.
So at the end of the process function (right after the frequency
calculation) i have :
mAudioUnit->SetParameter(kParam_NoteFreq, mNoteFreq);
But it doesn't work. The AU Programming Guide says that this function
change the value of the parameter and notifies the listeners of the
change. But I didn't set up any listener and I don't know how to do it
and how it works.
I've also seen a thread like "Calling SetParameter() from within
Process()" where I found this code :
AudioUnitParameter param;
param.mAudioUnit = mAudioUnit->GetComponentInstance();
param.mScope = kAudioUnitScope_Global;
param.mParameterID = kParam_NoteFreq;
AUParameterListenerNotify(NULL, NULL, ¶m);
XCode raise an error during building saying that
AUParameterListenerNotify is not declared in this scope.
Any help would be appeciable.
Thanks in advance
Rémi Thébault
_______________________________________________
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