table of contents
- experimental 3~git20250302~78a2035+ds-1
Mix_HaltChannel(3) | SDL_mixer3 FUNCTIONS | Mix_HaltChannel(3) |
NAME¶
Mix_HaltChannel - Halt playing of a particular channel.
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
void Mix_HaltChannel(int channel);
DESCRIPTION¶
This will stop further playback on that channel until a new chunk is started there.
Specifying a channel of -1 will halt _all_ channels, except for any playing music.
Any halted channels will have any currently-registered effects deregistered, and will call any callback specified by
Mix_ChannelFinished () before this function returns.
You may not specify MAX_CHANNEL_POST for a channel.
FUNCTION PARAMETERS¶
- channel
- channel to halt, or -1 to halt all channels.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SDL_mixer 3.0.0 | SDL_mixer |