MIX_PauseAllTracks - Man Page
Pause all currently-playing tracks.
Synopsis
#include <SDL3_mixer/SDL_mixer.h> bool MIX_PauseAllTracks(MIX_Mixer *mixer);
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 tracks on the specified mixer that are currently playing move to a paused state. They can later be resumed.
Function Parameters
- mixer
the mixer on which to pause all tracks.
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
Info
SDL_mixer 3.2.4 SDL_mixer3 FUNCTIONS