Re: Bug in AUBase::ScheduleParameter?
Re: Bug in AUBase::ScheduleParameter?
- Subject: Re: Bug in AUBase::ScheduleParameter?
- From: Anders Norlander <email@hidden>
- Date: Thu, 28 Oct 2010 11:56:03 +0200
[resend - accidentally didn't cc the list]
On 2010-10-27, at 21:54 , Ian Kemmish wrote:
>
> On 27 Oct 2010, at 17:18, Anders Norlander <email@hidden>, wrote:
>
>> However, AUBase::ScheduleParameter calls SetParameter before adding the event to the list of scheduled parameters.
>> That makes scheduling immediate events pretty much useless.
>
>
> Only if your particular implementation of SetParameter() fails to honour its inBufferOffsetInFrames parameter, surely?
>
The documentation of AudioUnitSetParameter explicitly says that inBufferOffsetInFrames should be zero,
and that AudioUnitScheduleParameters is to be used instead.
The base implementation of SetParameter() acts according to that and ignores the offset.
I don't think the intention is that subclasses are expected to override SetParameter to handle non-zero buffer offsets.
And if they are, I don't see why ScheduleParameter() adds those events to the scheduled parameter list.
Doing so doesn't affect the output of the unit, it just results in multiple render calls with constant parameter values.
-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