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