• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bug in AUBase::ScheduleParameter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: k3DMixerParam_PlaybackRate clicking noise
  • Next by Date: range for MusicTrackClear (or move)
  • Previous by thread: Re: Bug in AUBase::ScheduleParameter?
  • Next by thread: k3DMixerParam_PlaybackRate clicking noise
  • Index(es):
    • Date
    • Thread