• 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
Bug in AUBase::ScheduleParameter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Multichannel to Stereo in Logic
  • Next by Date: Re: Bug in AUBase::ScheduleParameter?
  • Previous by thread: Re: render callback + pthread_cond_signal
  • Next by thread: Re: Bug in AUBase::ScheduleParameter?
  • Index(es):
    • Date
    • Thread