Answered
0
0

I keep getting FMOD_ERR_INVALID_PARAM when trying to add DSP of type FMOD_DSP_TYPE_LOWPASS to custom ChannelGroup.
I double checked that the DSP is created successfully and ChannelGroup is initialized properly. What else could cause this error?

FMOD::ChannelGroup master = 0;
system->getMasterChannelGroup(&master);

FMOD::ChannelGroup worldSfxGroup = 0;
CHECK_ERR(system->createChannelGroup("World", &worldSfxGroup));
master->addGroup(worldSfxGroup);

FMOD::DSP lpf;
CHECK_ERR(system->createDSPByType(FMOD_DSP_TYPE_LOWPASS));
CHECK_ERR(worldSfxGroup->addDSP(2, lpf)); //FMOD_ERR_INVALID_PARAM on this line
  • You must to post comments
Best Answer
0
0

The first parameter of ChannelGroup::addDSP() is a FMOD_CHANNELCONTROL_DSP_INDEX and ‘2’ is not a valid value.

https://fmod.com/resources/documentation-api?page=content/generated/FMOD_CHANNELCONTROL_DSP_INDEX.html

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.