Re: Sample-accurate parameter automation? Possibe at all with AUs?
Re: Sample-accurate parameter automation? Possibe at all with AUs?
- Subject: Re: Sample-accurate parameter automation? Possibe at all with AUs?
- From: Ian Kemmish <email@hidden>
- Date: Tue, 11 Mar 2008 19:59:27 +0000
On 11 Mar 2008, at 7:03 pm, Greg X <email@hidden> wrote:
What is your answer to my other questions?
For example:
Why are AU examples calling GetParameter only at the
beginning of the render process?
Why is it acceptable? ..why is it a widely used
approach?
It's possible that your question is based on a misconception.
GetParameter() and SetParameter() are methods in the AU which get
called by the host. They don't get called by the AU. Or at least,
they shouldn't get called by the AU:-).
The normal sequence of events is that the host calls the AU's
SetParameter() method for all parameter changes in the upcoming
timeslice, just before calling the AU's Render() method. You will
notice that one of the parameters to SetParameter() is the extremely
handy inOffsetSampleFrame, which tells you at exactly which sample in
that timesclie to change the value of the parameter to which your
rendering code refers when it is calculating stuff.
Your AU is entirely free to honour or ignore inOffsetSampleFrame as
you see fit. If you want sample-accurate parameter changes, you'll
honour it.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
Ian Kemmish 18 Durham Close, Biggleswade, Beds
SG18 8HZ
email@hidden Tel: +44 1767 601361 Mob: +44 7952
854387
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
_______________________________________________
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