mixGetNumAudioDecoders function mixer
Report the number of audio decoders available for use.
An audio decoder is what turns specific audio file formats into usable PCM data. For example, there might be an MP3 decoder, or a WAV decoder, etc. SDL_mixer probably has several decoders built in.
The return value can be used to call MIX_GetAudioDecoder() in a loop.
The number of decoders available is decided during MIX_Init() and does not change until the library is deinitialized.
\returns the number of decoders available.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL_mixer 3.0.0.
\sa MIX_GetAudioDecoder
extern SDL_DECLSPEC int SDLCALL MIX_GetNumAudioDecoders(void)
Implementation
int mixGetNumAudioDecoders() {
final mixGetNumAudioDecodersLookupFunction = _libMixer
.lookupFunction<Int32 Function(), int Function()>(
'MIX_GetNumAudioDecoders',
);
return mixGetNumAudioDecodersLookupFunction();
}