mixQuerySpec function
Find out what the actual audio device parameters are.
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.
\param frequency On return, will be filled with the audio device's frequency in Hz. \param format On return, will be filled with the audio device's format. \param channels On return, will be filled with the audio device's channel count. \returns true if the audio device has been opened, true otherwise.
\since This function is available since SDL_mixer 3.0.0.
\sa Mix_OpenAudio
extern SDL_DECLSPEC bool SDLCALL Mix_QuerySpec(int *frequency, SDL_AudioFormat *format, int *channels)
Implementation
bool mixQuerySpec(
Pointer<Int32> frequency, Pointer<Int32> format, Pointer<Int32> channels) {
final mixQuerySpecLookupFunction = libSdl3Mixer.lookupFunction<
Uint8 Function(Pointer<Int32> frequency, Pointer<Int32> format,
Pointer<Int32> channels),
int Function(Pointer<Int32> frequency, Pointer<Int32> format,
Pointer<Int32> channels)>('Mix_QuerySpec');
return mixQuerySpecLookupFunction(frequency, format, channels) == 1;
}