table of contents
- experimental 3.1~git20250910~d032535+ds-1
MIX_PauseTag(3) | SDL_mixer3 FUNCTIONS | MIX_PauseTag(3) |
NAME¶
MIX_PauseTag - Pause all tracks with a specific tag.
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
bool MIX_PauseTag(MIX_Mixer *mixer, const char *tag);
DESCRIPTION¶
A paused track is not considered "stopped," so its
MIX_TrackStoppedCallback
will not fire if paused, but it won't change state by default, generate
audio, or generally make progress, until it is resumed.
This function makes all currently-playing tracks on the specified mixer, with a specific tag, move to a paused state. They can later be resumed.
Tracks that match the specified tag that aren't currently playing are ignored.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns true on success, false on error; call SDL_GetError() for details.
THREAD SAFETY¶
It is safe to call this function from any thread.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SEE ALSO¶
•(3), MIX_PauseTrack(3), •(3), MIX_ResumeTrack(3), •(3), MIX_ResumeTag(3), •(3), MIX_TagTrack(3)
SDL_mixer 3.1.0 | SDL_mixer |