table of contents
other versions
- experimental 3~git20250302~78a2035+ds-1
Mix_FreeMusic(3) | SDL_mixer3 FUNCTIONS | Mix_FreeMusic(3) |
NAME¶
Mix_FreeMusic - Free a music object.
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
void Mix_FreeMusic(Mix_Music *music);
DESCRIPTION¶
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.
FUNCTION PARAMETERS¶
- music
- the music object to free.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SEE ALSO¶
•(3), Mix_LoadMUS(3), •(3), Mix_LoadMUS_IO(3), •(3), Mix_LoadMUSType_IO(3)
SDL_mixer 3.0.0 | SDL_mixer |