MIX_ResumeTrack - Man Page

Resume a currently-paused track.

Synopsis

#include <SDL3_mixer/SDL_mixer.h>

bool MIX_ResumeTrack(MIX_Track *track);

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.

It is legal to resume a track that's in any state (playing, paused, or stopped). Unless the track is currently paused, resuming does nothing, and returns true. A false return is only used to signal errors here (such as MIX_Init not being called or track being NULL).

Function Parameters

track

the track to resume.

Return Value

Returns true if the track has resumed, 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

MIX_PauseTrack(3)

Info

SDL_mixer 3.2.4 SDL_mixer3 FUNCTIONS