mixGetNumChunkDecoders function

int mixGetNumChunkDecoders()

Get a list of chunk 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() 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 chunk decoders available.

\since This function is available since SDL_mixer 3.0.0.

\sa Mix_GetChunkDecoder \sa Mix_HasChunkDecoder

extern SDL_DECLSPEC int SDLCALL Mix_GetNumChunkDecoders(void)

Implementation

int mixGetNumChunkDecoders() {
  final mixGetNumChunkDecodersLookupFunction =
      libSdl3Mixer.lookupFunction<Int32 Function(), int Function()>(
          'Mix_GetNumChunkDecoders');
  return mixGetNumChunkDecodersLookupFunction();
}