Bug in AUBase::ScheduleParameter?
Bug in AUBase::ScheduleParameter?
- Subject: Bug in AUBase::ScheduleParameter?
- From: Anders Norlander <email@hidden>
- Date: Wed, 27 Oct 2010 17:18:25 +0200
Hi,
I'm having problems with scheduled parameter events in AudioUnits using the CoreAudio C++ SDK.
Either I'm misunderstanding something, or there is definitely a bug in the method AUBase::ScheduleParameter of AUBase.cpp.
According to the documentation for AudioUnitScheduleParameters:
"A so-called immediate audio unit parameter event takes place at a future time and involves an immediate change from one value to another"
However, AUBase::ScheduleParameter calls SetParameter before adding the event to the list of scheduled parameters.
That makes scheduling immediate events pretty much useless.
The work of slicing up the render buffer in AUBase::ProcessForScheduledParams and AUEffectBase::ProcessScheduledSlice
become pointless, since the value of the parameter, and therefore the result, is the same as it would have
been if AUEffectBase::Render had rendered all the frames in one go.
To achieve a change of a parameter at a specific point in the buffer, you can simulate it
by scheduling a ramped event with the same start and end values. But isn't that exactly
what an immediate event should do?
By overriding removing ScheduleParameter or removing the SetParameter I get the results expected
from reading the documentation for AudioUnitScheduleParameters.
I would appreciate if someone could clear things up..
Regards,
Anders
_______________________________________________
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