mixGetNumMusicDecoders function

int mixGetNumMusicDecoders()

Get a list of music decoders that this build of SDL_mixer provides.

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() or Mix_OpenAudioDevice() 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().

\returns number of music decoders available.

\since This function is available since SDL_mixer 2.0.0.

\sa Mix_GetMusicDecoder \sa Mix_HasMusicDecoder

extern DECLSPEC int SDLCALL Mix_GetNumMusicDecoders(void)

Implementation

int mixGetNumMusicDecoders() {
  final mixGetNumMusicDecodersLookupFunction =
      libSdl2Mixer.lookupFunction<Int32 Function(), int Function()>(
          'Mix_GetNumMusicDecoders');
  return mixGetNumMusicDecodersLookupFunction();
}