You may not need to call this explicitly, unless you need to stop an effect from processing in the middle of a chunk's playback.
int Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f);
channel |
channel |
f |
effect callback |
Returns zero if error (no such channel or effect), nonzero if removed. Error messages can be retrieved from Mix_GetError().
Posteffects are never implicitly unregistered as they are for channels, but they may be explicitly unregistered through this function by specifying MIX_CHANNEL_POST for a channel.
This function is available since SDL_mixer 2.0.0.