table of contents
- experimental 3~git20250302~78a2035+ds-1
Mix_GetNumMusicDecoders(3) | SDL_mixer3 FUNCTIONS | Mix_GetNumMusicDecoders(3) |
NAME¶
Mix_GetNumMusicDecoders - Get a list of music decoders that this build of SDL_mixer provides.
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
int Mix_GetNumMusicDecoders(void);
DESCRIPTION¶
This list can change between builds AND runs of the program, if external libraries that add functionality become available. You must successfully call Mix_OpenAudio () before calling this function, as decoders are activated at device open time.
Appearing in this list doesn't promise your specific audio file will decode...but it's handy to know if you have, say, a functioning Ogg Vorbis install.
These return values are static, read-only data; do not modify or free it. The pointers remain valid until you call
Mix_CloseAudio ().
RETURN VALUE¶
Returns number of music decoders available.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SEE ALSO¶
•(3), Mix_GetMusicDecoder(3), •(3), Mix_HasMusicDecoder(3)
SDL_mixer 3.0.0 | SDL_mixer |