MIX_GetNumAudioDecoders - Man Page
Report the number of audio decoders available for use.
Synopsis
#include <SDL3_mixer/SDL_mixer.h> int MIX_GetNumAudioDecoders(void);
Description
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.
Return Value
Returns the number of decoders available.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL_mixer 3.0.0.
See Also
Info
SDL_mixer 3.2.4 SDL_mixer3 FUNCTIONS