table of contents
other versions
- experimental 3~git20250610~30c1301+ds-1
Mix_ChannelFinished(3) | SDL_mixer3 FUNCTIONS | Mix_ChannelFinished(3) |
NAME¶
Mix_ChannelFinished - Set a callback that runs when a channel has finished playing.
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
void Mix_ChannelFinished(Mix_ChannelFinishedCallback channel_finished);
DESCRIPTION¶
The callback may be called from the mixer's audio callback or it could be called as a result of Mix_HaltChannel (), etc.
The callback has a single parameter, channel , which says what mixer channel has just stopped.
A NULL pointer will disable the callback.
FUNCTION PARAMETERS¶
- channel_finished
- the callback function to become the new notification mechanism.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SDL_mixer 3.0.0 | SDL_mixer |