sdlAudioDevicePaused function
Use this function to query if an audio device is paused.
Unlike in SDL2, audio devices start in an unpaused state, since an app has to bind a stream before any audio will flow.
Physical devices can not be paused or unpaused, only logical devices created through SDL_OpenAudioDevice() can be. Physical and invalid device IDs will report themselves as unpaused here.
\param dev a device opened by SDL_OpenAudioDevice(). \returns true if device is valid and paused, false otherwise.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
\sa SDL_PauseAudioDevice \sa SDL_ResumeAudioDevice
extern SDL_DECLSPEC bool SDLCALL SDL_AudioDevicePaused(SDL_AudioDeviceID dev)
Implementation
bool sdlAudioDevicePaused(int dev) {
final sdlAudioDevicePausedLookupFunction =
libSdl3.lookupFunction<Uint8 Function(Uint32 dev), int Function(int dev)>(
'SDL_AudioDevicePaused');
return sdlAudioDevicePausedLookupFunction(dev) == 1;
}