mixGetMusicType function
Find out the format of a mixer music.
If music
is NULL, this will query the currently playing music (and return
MUS_NONE if nothing is currently playing).
\param music the music object to query, or NULL for the currently-playing music. \returns the Mix_MusicType for the music object.
\since This function is available since SDL_mixer 2.0.0
extern DECLSPEC Mix_MusicType SDLCALL Mix_GetMusicType(const Mix_Music *music)
Implementation
int mixGetMusicType(Pointer<MixMusic> music) {
final mixGetMusicTypeLookupFunction = libSdl2Mixer.lookupFunction<
Int32 Function(Pointer<MixMusic> music),
int Function(Pointer<MixMusic> music)>('Mix_GetMusicType');
return mixGetMusicTypeLookupFunction(music);
}