getNumTracks method

int getNumTracks()

Get number of tracks in music object.

This only applies to GME music formats.

\param music the music object. \returns number of tracks if successful, or -1 if failed or isn't implemented.

\since This function is available since SDL_mixer 3.0.0.

extern SDL_DECLSPEC int SDLCALL Mix_GetNumTracks(Mix_Music *music)

Implementation

int getNumTracks() {
  return mixGetNumTracks(this);
}