Either I’m doing something wrong (likely) or ChannelGroup->setVolume appears to be doing nothing. Here’s an edited example of my test case:
system->playSound( FMOD_CHANNEL_FREE, aSnd, true, &channel );
channel->getDSPHead( &channelDSPHead );
channelDSPHead->disconnectAll( false, true );
wetChannelGroupDSPHead->addInput( channelDSPHead, 0 );
// so now the only connection channel has is through wetChannelGroup
wetChannelGroup->setVolume( 0.0 );
channel->setPaused( false ); // sound is still audible
- prehensile asked 7 years ago
First thing I notice is that wetChannelGroupDSPHead is unitialized. The addInput function should be returning FMOD_ERR_INVALID_HANDLE. There could be some other invalid handles which may explain the behaviour you’re seeing. Make sure that you check the FMOD_RESULT returned from every FMOD function call.
Please login first to submit.