.\" 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_GetMusicTitle: .\" https://wiki.libsdl.org/SDL_mixer/Mix_GetMusicTitle .\" 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_GetMusicTitle .\" 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_GetMusicTitle 3 "SDL_mixer 3.0.0" "SDL_mixer" "SDL_mixer3 FUNCTIONS" .SH NAME Mix_GetMusicTitle \- Get the title for a music object, or its filename\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_mixer/SDL_mixer.h\(dq .PP .BI "const char* Mix_GetMusicTitle(const Mix_Music *music); .fi .SH DESCRIPTION This returns format-specific metadata\[char46] Not all file formats supply this! If .BR music is NULL, this will query the currently-playing music\[char46] If music's title tag is missing or empty, the filename will be returned\[char46] If you'd rather have the actual metadata or nothing, use .BR Mix_GetMusicTitleTag () instead\[char46] Please note that if the music was loaded from an SDL_IOStream instead of a filename, the filename returned will be an empty string ("")\[char46] This function never returns NULL! If no data is available, it will return an empty string ("")\[char46] .SH FUNCTION PARAMETERS .TP .I music the music object to query, or NULL for the currently-playing music\[char46] .SH RETURN VALUE Returns the music's title if available, or the filename if not, or ""\[char46] .SH AVAILABILITY This function is available since SDL_mixer 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR Mix_GetMusicTitleTag (3), .BR Mix_GetMusicArtistTag (3), .BR Mix_GetMusicAlbumTag (3), .BR Mix_GetMusicCopyrightTag (3)