• 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: Initialization of parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initialization of parameters


  • Subject: Re: Initialization of parameters
  • From: William Stewart <email@hidden>
  • Date: Tue, 22 Apr 2008 14:50:07 -0700

The calls in the constructor are required:
(1) Creates a space in the element for that parameter
(2) Sets the default value of the parameter

If you don't do this, then you don't have the parameter

On Apr 22, 2008, at 8:47 AM, Howard Moon wrote:

In the AU examples I've seen, the constructor of the AU calls SetParameter with default values for the parameters. Is that needed? I would expect, since the GetParameterInfo function override sets the default value, that the host (or some part of the AU base class hierarchy) would use that default information to call SetParameter for us. Am I mistaken? Or are the calls to SetParameter in the constructor redundant?

Thanks,
	-Howard

_______________________________________________
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Initialization of parameters
      • From: Howard Moon <email@hidden>
References: 
 >Initialization of parameters (From: Howard Moon <email@hidden>)

  • Prev by Date: Re: AUVarispeed usage question
  • Next by Date: Re: AUVarispeed usage question
  • Previous by thread: Re: Initialization of parameters
  • Next by thread: Re: Initialization of parameters
  • Index(es):
    • Date
    • Thread