• 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: More newbie AU questions (compiler stuff, indexed parameters...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More newbie AU questions (compiler stuff, indexed parameters...)


  • Subject: Re: More newbie AU questions (compiler stuff, indexed parameters...)
  • From: Bill Stewart <email@hidden>
  • Date: Mon, 16 Sep 2002 14:51:59 -0700

I tested this out with the generic view (where the view would then show a
popuup menu)... This is what I added to get it to work:

GetParameterValueStrings(AudioUnitScope inScope,
AudioUnitParameterID inParameterID,
CFArrayRef * outStrings)
{
if (inScope == kAudioUnitScope_Global && inParameterID ==
kDelayParam_TestIndex)
{
CFStringRef strs[] = { CFSTR("First Value"), CFSTR("Second Value"),
CFSTR("Third Value") };
*outStrings = CFArrayCreate(NULL, (const void**)strs, 3, NULL);
return noErr;
}

return kAudioUnitErr_InvalidProperty;
}


And then in GetParameterInfo:
case kDelayParam_TestIndex:

AUBase::FillInParameterName (outParameterInfo,
kTestIndex_Name);
outParameterInfo.unit = kAudioUnitParameterUnit_Indexed;
outParameterInfo.minValue = 4;
outParameterInfo.maxValue = 6;
outParameterInfo.defaultValue = kDefaultValue_TestIndex;
break;


I tested this with various values for the min and max values - and it all
seemed to work OK - let me know how this goes (will add this to the SDK)

Bill

on 16/9/02 8:49 AM, Paul Kellett wrote:
> "Marc Poirier" <email@hidden> wrote:
>>
>> I think that in GetParameterInfo() you are also supposed to do this:
>> outParameterInfo.cfNameString = myString;
>
> That seems to be for using a CFString as the parameter name rather
> than for providing a list of labels for parameter values. Has anyone
> got kAudioUnitParameterUnitIndexed to work? The Apple AudioUnits
> don't seem to use it...
>
>
> Thanks everyone for the information on ProjectBuilder settings, I
> now know all the things I can try, I just have to get them in the
> right order to do what I want!
>
>
> Paul.
>
> _____________________________
>
> m a x i m | digital audio
>
> http://mda-vst.com
> _____________________________
> _______________________________________________
> 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

__________________________________________________________________________
"...Been havin' some trouble lately in the sausage business," C.M.O.T.
Dibbler replied.
"What, having trouble making both ends meat?"
__________________________________________________________________________
_______________________________________________
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:
    • my first AudioUnits...
      • From: "Paul Kellett" <email@hidden>
    • Re: More newbie AU questions (compiler stuff, indexed parameters...)
      • From: "Paul Kellett" <email@hidden>
References: 
 >Re: More newbie AU questions (compiler stuff, indexed parameters...) (From: "Paul Kellett" <email@hidden>)

  • Prev by Date: Re: AU built and then...
  • Next by Date: Re: AU built and then...
  • Previous by thread: Re: More newbie AU questions (compiler stuff, indexed parameters...)
  • Next by thread: Re: More newbie AU questions (compiler stuff, indexed parameters...)
  • Index(es):
    • Date
    • Thread