Find out what the actual audio device parameters are.
Defined in <SDL3_mixer/SDL_mixer.h>
bool Mix_QuerySpec(int *frequency, SDL_AudioFormat *format, int *channels);
int * | frequency | On return, will be filled with the audio device's frequency in Hz. |
SDL_AudioFormat * | format | On return, will be filled with the audio device's format. |
int * | channels | On return, will be filled with the audio device's channel count. |
(bool) Returns true if the audio device has been opened, true otherwise.
Note this is only important if the app intends to touch the audio buffers being sent to the hardware directly. If an app just wants to play audio files and let SDL_mixer handle the low-level details, this function can probably be ignored.
If the audio device is not opened, this function will return 0.
This function is available since SDL_mixer 3.0.0.