Set a function that is called after all mixing is performed.
void Mix_SetPostMix(void (SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg);
mix_func |
callback function |
arg |
callback argument to be passed |
This can be used to provide real-time visual display of the audio stream or add a custom mixer filter for the stream data.
This function is available since SDL_mixer 2.0.0.