• 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: 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.

  • Follow-Ups:
    • Re: PostConstructor vs Initialize (AU's built-in Parameter Implementation)
      • From: William Stewart <email@hidden>
References: 
 >PostConstructor vs Initialize (From: yoshida <email@hidden>)
 >Re: PostConstructor vs Initialize (From: William Stewart <email@hidden>)

  • Prev by Date: Re: Streaming OS X audio over network
  • Next by Date: Re: Streaming OS X audio over network
  • Previous by thread: Re: PostConstructor vs Initialize
  • Next by thread: Re: PostConstructor vs Initialize (AU's built-in Parameter Implementation)
  • Index(es):
    • Date
    • Thread