Do I have to call FMOD_Channel_RemoveDSP() and remove a DSP added to a channel with FMOD_Channel_AddDSP() after the sound stops?
I’m confused because FMOD_Channel_Stop() releases resources and invalidates the FMOD_CHANNEL handle.
That means FMOD_Channel_RemoveDSP() won’t work with my stale handle.
But as for FMOD_DSP_Release(), the document says :
“If DSP is not removed from the network with ChannelControl::removeDSP after being added with ChannelControl::addDSP, it will not release and will instead return FMOD_ERR_DSP_INUSE.”
Also, if I really have to remove the channel DSP, it’s a little bit annoying because I need to write extra code for that (like callbacks or checking logic if the sound stopped naturally or manually.).
So far, I mostly used global DSPs added to channel groups, but this time I need to add many different DSPs individually.