• 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: Getting popups in the generic view. (Newbie problem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting popups in the generic view. (Newbie problem)


  • Subject: Re: Getting popups in the generic view. (Newbie problem)
  • From: Dave Budde <email@hidden>
  • Date: Tue, 5 Sep 2006 06:41:49 -0700

I ran into the same problem when doing this recently and was able to fix it by adding the following code:

ComponentResult TremoloUnit::GetParameterValueStrings(AudioUnitScope inScope,
  AudioUnitParameterID inParameterID,
  CFArrayRef * outStrings) {
    if ( (inScope == kAudioUnitScope_Global) && (inParameterID == kTremoloParam_Waveform) ) {
        if (outStrings == NULL) return noErr; //called by GetPropInfo
CFStringRef strings[] = { kMenuItem_TremoloParam_Sine, kMenuItem_TremoloParam_Square };
*outStrings = CFArrayCreate( NULL, (const void **)strings, 2, NULL);
        return noErr;
    }
return kAudioUnitErr_InvalidProperty;
}

I don't seem to have any problems like the ones you mentioned.  Hope this helps.

Dave


 _______________________________________________
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: 
 >Getting popups in the generic view. (Newbie problem) (From: Mikael Sundström <email@hidden>)

  • Prev by Date: Getting popups in the generic view. (Newbie problem)
  • Next by Date: Re: Getting popups in the generic view. (Newbie problem)
  • Previous by thread: Getting popups in the generic view. (Newbie problem)
  • Next by thread: Re: Getting popups in the generic view. (Newbie problem)
  • Index(es):
    • Date
    • Thread