Hi, I've implemented a GetParamterList which looks
like it enables the parameter control drop down menus in Live - all my variables
are displayed correctly. I've debugged it and it appears to return the
size (47) first then duly allocate the block for the list is the AU
dispatch code.
The problem is that it completely messes up
my GUI, with weird lines everywhere and NaN variables displayed. Has
anybody had this problem that can help? This is the single bit of code that
seems to cause havoc..
ComponentResult
EffectBaseAU::GetParameterList(AudioUnitScope iScope, AudioUnitParameterID*
asIDList, UInt32& riNum)
{
// Returns the parameter
list.
if
(iScope==kAudioUnitScope_Global)
{
if
(asIDList)
{
for (UInt32 i=0; i < TAGnumParams; i++)
asIDList[i]=i;
}
riNum =
TAGnumParams;
return
noErr;
}
return
AUBase::GetParameterList(iScope, asIDList, riNum);
}
cheers,
Dave Hoskins
|