Scroll to navigation

Mix_StartTrack(3) SDL_mixer3 FUNCTIONS Mix_StartTrack(3)

NAME

Mix_StartTrack - Start a track in music object.

HEADER FILE

Defined in SDL3_mixer/SDL_mixer.h

SYNOPSIS

#include "SDL3_mixer/SDL_mixer.h"
bool Mix_StartTrack(Mix_Music *music, int track);

DESCRIPTION

This only applies to GME music formats.

FUNCTION PARAMETERS

the music object.
the track number to play. 0 is the first track.

RETURN VALUE

Returns true on success or false on failure; call SDL_GetError() for more information.

AVAILABILITY

This function is available since SDL_mixer 3.0.0.

SDL_mixer 3.0.0 SDL_mixer