mixStartTrack function
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 mixStartTrack(Pointer<MixMusic> music, int track) {
final mixStartTrackLookupFunction = libSdl3Mixer.lookupFunction<
Uint8 Function(Pointer<MixMusic> music, Int32 track),
int Function(Pointer<MixMusic> music, int track)>('Mix_StartTrack');
return mixStartTrackLookupFunction(music, track) == 1;
}