Re: AU2 - Reset
Re: AU2 - Reset
- Subject: Re: AU2 - Reset
- From: Chris Rogers <email@hidden>
- Date: Wed, 25 Sep 2002 12:25:24 -0700
Marc,
In some ways, it is up to the client hosting the Audio Unit to decide when
it's appropriate to call AudioUnitReset(). The Audio Unit is assumed
to be in the "reset" state immediately after a call to AudioUnitInitialize(),
so your initialization code should make sure that happens. An Audio Unit
should be ready to start processing immediately after this call. You bring up
a good point about bypass. Audio Units should reset their state when
entering the bypass state and this is what happens in the SDK in the
AUEffectBase class. It seems like in most cases it would be wise to
reset the internal state after a stream format change, although I'd have
to look in the SDK code to see how this is handled.
From the host's point of view, it is probably a good idea to call
AudioUnitReset() on all Audio Units whenever the transport stops and
restarts, and certainly when the playback time changes on the timeline...
Chris Rogers
Core Audio
Apple Computer
During what situations can an Audio Unit depend on receiving a call to
Reset? After a stream format change? After processing stops, right
before it restarts, or both? When entering bypass? When exiting bypass?
Immediately after Initialize, or is the plugin expected to be ready to
process immediately after Initialize?
Thanks,
Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.