Re : Help needed for Audio Unit Parameter Change Notification
Re : Help needed for Audio Unit Parameter Change Notification
- Subject: Re : Help needed for Audio Unit Parameter Change Notification
- From: Rémi Thébault <email@hidden>
- Date: Sun, 28 Oct 2007 01:33:08 +0200
Hello everybody
Just for information I've resolved my problem. I post this for other
newbies like me having the same problem.
So the problem was in fact to create an indicator in the view
(certainly i didn't explain very well) in order to get a value
calculated within the process function refreshed in real-time on the
view.
The solution was note to try to tell the view of the value change from
the MainClass::Render or process (what i actually tried to do from the
beginning and got lost into it) but to ask the view to check the
parameter value and to update on regular time interval with a
TimerLoopEvent. This solution is not possible with a generic view.
So a little resume :
To use a parameter as indicator :
its flag must be set as readable but not writable
ComponentResult MainClass::Render(...) {
...
SetParameter( ParameterId, Value);
...
}
MainClassView::MainClassView(...) {
...
CreateEventLoopTimer (...);
...
}
void MainClassView::RespondToEventLoopTimer(...) {
// Code that update the view.
}
This is of course customizable. For more information : /Developer/
Examples/CoreAudio/AudioUnits/CarbonGenericView.
This example implements some VU-Meters.
Thanks all Folks for the help
Rémi _______________________________________________
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