Running the following code on a playing event instance:
FMOD.ChannelGroup chGroup;
FMOD.DSP dsp;
string name;
int _ignore;
uint _uignore;
int paramCount = 0;
Audio.CheckError(evtInstance.getChannelGroup(out chGroup), this);
Audio.CheckError(chGroup.getDSP(0, out dsp), this);
dsp.getInfo(out name, out _uignore, out _ignore, out _ignore, out _ignore);
s += string.Format("\n - {0}", name);
Audio.CheckError(dsp.getNumParameters(out paramCount), this);
for (int j = 0; j < paramCount; ++j)
{
FMOD.DSP_PARAMETER_DESC paramDesc = new FMOD.DSP_PARAMETER_DESC();
Audio.CheckError(dsp.getParameterInfo(j, out paramDesc), this);
string paramName = new string(paramDesc.name);
s += string.Format("\n - param {0} : type: {1} name: '{2}' label: '{3}'",
j,
paramDesc.type,
new string(paramDesc.name),
new string(paramDesc.label)
);
}
I get garbage data back from getParameterInfo
, for instance:
- ChanGroup Fader
- param 0 : type: -404006640 name: '' label: ''
- param 1 : type: -404006640 name: '' label: ''
Same goes for paramDesc.desc, all useless data.
I’m using Unity 2017.2.5f1
and
fmodstudio11014_v2.unitypackage
/ FMOD Studio 1.10.14 64-bit Build #102821