startTrack method

bool startTrack(
  1. int track
)

Start a track in music object.

This only applies to GME music formats.

\param music the music object. \param track the track number to play. 0 is the first track. \returns true on success or false on failure; call SDL_GetError() for more information.

\since This function is available since SDL_mixer 3.0.0.

extern SDL_DECLSPEC bool SDLCALL Mix_StartTrack(Mix_Music *music, int track)

Implementation

bool startTrack(int track) {
  return mixStartTrack(this, track);
}