• 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: Better Parameter Handling (Was Re: Volume control)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Better Parameter Handling (Was Re: Volume control)


  • Subject: Re: Better Parameter Handling (Was Re: Volume control)
  • From: "Michael Forrest" <email@hidden>
  • Date: Sat, 1 Mar 2008 18:37:32 +0000

ah - it's just

for (int i=0; i<kNumParameters; i++) {
    SetParameter(i, gFilterParameters[i]->defaultValue);
}

On Sat, Mar 1, 2008 at 6:22 PM, Michael Forrest <email@hidden> wrote:
Just one more thing Mark - how do you set the defaults using this system? I can see them in the .._info things but I'm not sure how to get them...



#define PARAM_INFO(name, unit, minValue, maxValue, defaultValue, flags) {\
name, NULL, 0, CFSTR(name), unit, minValue, maxValue, defaultValue, flags\
}


#pragma mark ____Filterizer Parameters

// FilterCutoff
static AudioUnitParameterInfo Filter_Cutoff_info 
= PARAM_INFO(  "Filter Cutoff", 
             kAudioUnitParameterUnit_Hertz,
             30.0,    //min
             22000.0, //max
             1000.0,  //default
             kAudioUnitParameterFlag_DisplayLogarithmic // flags
             );
<snip> to avoid moderation



--
Michael Forrest
http://mf.grimaceworks.com
 _______________________________________________
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

References: 
 >Re: Better Parameter Handling (Was Re: Volume control) (From: "Michael Forrest" <email@hidden>)

  • Prev by Date: Re: Better Parameter Handling (Was Re: Volume control)
  • Next by Date: Example of using hardware input with mixer in AUGraph
  • Previous by thread: Re: Better Parameter Handling (Was Re: Volume control)
  • Next by thread: Example of using hardware input with mixer in AUGraph
  • Index(es):
    • Date
    • Thread