.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL_mixer's wiki page for Mix_HasMusicDecoder: .\" https://wiki.libsdl.org/SDL_mixer/Mix_HasMusicDecoder .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3~git20240319~12fb85e+ds-1 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20Mix_HasMusicDecoder .\" SDL_mixer can be found at https://libsdl.org/projects/SDL_mixer .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH Mix_HasMusicDecoder 3 "SDL_mixer 3.0.0" "SDL_mixer" "SDL_mixer3 FUNCTIONS" .SH NAME Mix_HasMusicDecoder \- Check if a music decoder is available by name\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_mixer/SDL_mixer.h\(dq .PP .BI "SDL_bool Mix_HasMusicDecoder(const char *name); .fi .SH DESCRIPTION This result can change between builds AND runs of the program, if external libraries that add functionality become available\[char46] You must successfully call .BR Mix_OpenAudio () before calling this function, as decoders are activated at device open time\[char46] Decoder names are arbitrary but also obvious, so you have to know what you're looking for ahead of time, but usually it's the file extension in capital letters (some example names are "MOD", "MP3", "FLAC")\[char46] .SH FUNCTION PARAMETERS .TP .I name the decoder name to query\[char46] .SH RETURN VALUE Returns SDL_TRUE if a decoder by that name is available, SDL_FALSE otherwise\[char46] .SH AVAILABILITY This function is available since SDL_mixer 3\[char46]0\[char46]0 .SH SEE ALSO .BR Mix_GetNumMusicDecoders (3), .BR Mix_GetMusicDecoder (3)