.\" 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_GetSoundFonts: .\" https://wiki.libsdl.org/SDL_mixer/Mix_GetSoundFonts .\" 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_GetSoundFonts .\" 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_GetSoundFonts 3 "SDL_mixer 3.0.0" "SDL_mixer" "SDL_mixer3 FUNCTIONS" .SH NAME Mix_GetSoundFonts \- Get SoundFonts paths to use by supported MIDI backends\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_mixer/SDL_mixer.h\(dq .PP .BI "const char* Mix_GetSoundFonts(void); .fi .SH DESCRIPTION There are several factors that determine what will be reported by this function: \(bu If the boolean _SDL hint_ .BR "SDL_FORCE_SOUNDFONTS" is set, AND the .BR "SDL_SOUNDFONTS" _environment variable_ is also set, this function will return that environment variable regardless of whether .BR Mix_SetSoundFounts () was ever called\[char46] \(bu Otherwise, if .BR Mix_SetSoundFonts () was successfully called with a non-NULL path, this function will return the string passed to that function\[char46] \(bu Otherwise, if the .BR "SDL_SOUNDFONTS" variable is set, this function will return that environment variable\[char46] \(bu Otherwise, this function will search some common locations on the filesystem, and if it finds a SoundFont there, it will return that\[char46] \(bu Failing everything else, this function returns NULL\[char46] This returns a pointer to internal (possibly read-only) memory, and it should not be modified or free'd by the caller\[char46] .SH RETURN VALUE Returns semicolon-separated list of sound font paths\[char46] .SH AVAILABILITY This function is available since SDL_mixer 3\[char46]0\[char46]0\[char46]