• 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:22:47 +0000

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
 _______________________________________________
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: Better Parameter Handling (Was Re: Volume control)
      • From: "Michael Forrest" <email@hidden>
  • Next by Date: Re: Better Parameter Handling (Was Re: Volume control)
  • Next by thread: Re: Better Parameter Handling (Was Re: Volume control)
  • Index(es):
    • Date
    • Thread