Function sdl2_sys::SDL_GetAudioStatus

source ·
pub unsafe extern "C" fn SDL_GetAudioStatus() -> SDL_AudioStatus
Expand description

This function is a legacy means of querying the audio device.

New programs might want to use SDL_GetAudioDeviceStatus() instead. This function is equivalent to calling…

SDL_GetAudioDeviceStatus(1);

…and is only useful if you used the legacy SDL_OpenAudio() function.

\returns the SDL_AudioStatus of the audio device opened by SDL_OpenAudio().

\since This function is available since SDL 2.0.0.

\sa SDL_GetAudioDeviceStatus