mixFreeMusic function
Free a music object.
If this music is currently playing, it will be stopped.
If this music is in the process of fading out (via Mix_FadeOutMusic()), this function will block until the fade completes. If you need to avoid this, be sure to call Mix_HaltMusic() before freeing the music.
\param music the music object to free.
\since This function is available since SDL_mixer 2.0.0.
\sa Mix_LoadMUS \sa Mix_LoadMUS_RW \sa Mix_LoadMUSType_RW
extern DECLSPEC void SDLCALL Mix_FreeMusic(Mix_Music *music)
Implementation
void mixFreeMusic(Pointer<MixMusic> music) {
final mixFreeMusicLookupFunction = libSdl2Mixer.lookupFunction<
Void Function(Pointer<MixMusic> music),
void Function(Pointer<MixMusic> music)>('Mix_FreeMusic');
return mixFreeMusicLookupFunction(music);
}