0
0

Hi,

I have followed the fmod designer doc that discribe how to simulate a distance attenuation with a "distance parameter" (see page 128). It works but i need to update the distance range on the fly. I have browsed the API doc in the search of a way to change the range. DSP class seems to be what i’m looking for. Then i have written a small proto that retrieves the DSP responsible of the volume attenuation. However, it doesn’t find any parameter in the "next DSP".

here is the code:
[code:2anjg35t]int numinputs;
channel->getDSPHead(&dsphead);
dsphead->getNumInputs(&numinputs);
if (numinputs > 1) // FMOD_ERR_DSP_TOOMANYCONNECTIONS
{
return;
}
dsphead->getInput(0, &next);
int numparams;
next->getNumParameters(&numparams);
for (int q=0; q<numparams; q++)
{
char name[256], label[256], desc[256];
float min, max;
next->getParameterInfo(q, name, label, desc, 256, &min, &max);
}[/code:2anjg35t]

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.