Re: AU hosting and AU life cycle management
Re: AU hosting and AU life cycle management
- Subject: Re: AU hosting and AU life cycle management
- From: William Stewart <email@hidden>
- Date: Tue, 9 Feb 2010 17:48:13 -0800
On Feb 8, 2010, at 4:26 PM, Brian Willoughby wrote:
I quickly scanned the linked KVR thread, and although I didn't read
every word, I did come away with the impression that there was some
confusion between MIDI notes and audio buffers. In other words,
developers seem unanimous in interpreting that Reset() should clear
out any audio buffers or state. But Urs, at least, seems to expect
that MIDI notes which were On before the Reset() should still be
considered On after the Reset() unless a specific MIDI Off is
received by the AU. In contrast, my assumption would be that Reset
() should also clear all MIDI notes as well as all audio state.
This is interpretation is incorrect. The documentation clearly states
that it resets ALL state, and makes no comment about excluding MIDI
state (playing notes) from that. That is why we describe this as
reseting the "rendering state" of the AU, and for a synth, rendering
notes is a part of its rendering state.
Bill, could you clarify this? With regards to an aumu type AU,
should a plugin clear all state associated with incoming MIDI notes
(and MIDI controls) during a Reset()? If not, is there a separate
"reset" call for MIDI state that is separate from audio state?
P.S. Searching on Tiger, I found header comments describing
AUCodecReset() and AUConverterReset(), but AudioUnitReset() has no
description or documentation at all (other than the types of the
parameters).
In the tiger docs there are some API documents about this - we moved
these to the headers (finally!) in Snow Leopard
Brian
On Feb 8, 2010, at 15:21, William Stewart wrote:
Hi Paul
As you are on the KVR forums, perhaps you could direct them to this
list and we can clear up the confusion :)
Appreciate you checking, and any help you can provide is much
appreciated
On Feb 8, 2010, at 3:12 PM, Paul Davis wrote:
On Mon, Feb 8, 2010 at 5:59 PM, William Stewart <email@hidden>
wrote:
but there are strong hints (e.g. from discussions on a KVR
thread a
year ago) that plugin deveopers are also confused over the
relationship between Reset and Initialize.
I don't know why. We've not changed our basic message of what
Reset does and
is intended to do. Nor have we changed our basic premise of
Initialisation.
Furthermore it would be helpful know if other host developers have
made special accomodations for the hardware-based plugins such as
Universal Audio, or will they "just work" once we get the life
cycle
right?
I'm not sure exactly what the "life-cycle" problem is that you
are having.
(I'm not sure that your confusion can be generalised to
everyone's confusion
as you are seeming to imply).
just to illustrate the sort of "confusion" I am referring to:
http://www.kvraudio.com/forum/printview.php?t=220895&start=60
but thanks for the comments, and I'll probably put Ben Loftis from
Harrison Consoles in touch.
_______________________________________________
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