Re: PostConstructor vs Initialize
Re: PostConstructor vs Initialize
- Subject: Re: PostConstructor vs Initialize
- From: yoshida <email@hidden>
- Date: Wed, 28 Jan 2004 18:07:32 +0900
Thanks for the reply, bill!
At 11:19 AM -0800 04.1.27, William Stewart wrote:
These are two very different methods.
First, they correspond to different API calls for an AudioUnit.
PostConstructor is called as part of the process of opening an AU.
It is expected that opening an AU is a cheap operation, where the
host can then query some of the features, capabilities of an AU
(for instance, its channel handling capabilities)
Initialize corresponds to AudioUnitinitialize and is called by the
host when an AU is expected to be used to render audio. This is the
place where resources needed for rendering should be acquired,
etc... This can be as expensive as needed, after this call, you
must be ready to render. Being asked to render before this call is
made is an error.
There are some more details on this in the docs
(/Developer/Documentation/CoreAudio)
As this is an API, you should not call it directly yourself,
particularly in a constructor.
I have just one more question.
Is SetParameter() or GetParameter() called before Initalize() ?
TIA.
--
-----------------------------------------
English is not my native language,
so I'm not good at English, sorry :-(
M.Yoshida @ Japan
_______________________________________________
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.