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
|