• 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
Re: PostConstructor vs Initialize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PostConstructor vs Initialize


  • Subject: Re: PostConstructor vs Initialize
  • From: William Stewart <email@hidden>
  • Date: Tue, 27 Jan 2004 11:19:33 -0800

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.

Bill

On 26/01/2004, at 6:49 PM, yoshida wrote:

Hi.

What difference of PostConstructor and Initialize?
How can I use this properly?

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.


-- mailto:email@hidden
tel: +1 408 974 4056

________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __
_______________________________________________
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.
  • Follow-Ups:
    • Re: PostConstructor vs Initialize
      • From: yoshida <email@hidden>
References: 
 >PostConstructor vs Initialize (From: yoshida <email@hidden>)

  • Prev by Date: Re: Streaming OS X audio over network
  • Next by Date: Re: HALOutputUnit and multiple streams
  • Previous by thread: PostConstructor vs Initialize
  • Next by thread: Re: PostConstructor vs Initialize
  • Index(es):
    • Date
    • Thread