Unhook a processor from a channel
Use MIX_CHANNEL_POST for the postmix stream.
Zero on errors, such as invalid channel, or effect function not registered on channel.
If the channel is active the registered effect will have its Mix_EffectDone_t function called, if it was specified in Mix_RegisterEffect.
int Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f)
// unregister the noEffect from the postmix effects // this removes all occurances of noEffect registered to the postmix while(Mix_UnregisterEffect(MIX_CHANNEL_POST, noEffect)); // you may print Mix_GetError() if you want to check it. // it should say "No such effect registered" after this loop.
SdlMixer Class | Tao.Sdl Namespace | Mix_RegisterEffect | Mix_UnregisterAllEffects