SDL_AudioStreamDevicePaused(3)
π SDL_AudioStreamDevicePaused(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today we're checking in on an audio device like the nosy supportive friend we are π
β¨ NAME β¨
SDL_AudioStreamDevicePaused β use this function to query if an audio device associated with a stream is paused.
like. is it napping. is it awake. we're finding out π¦
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_audio.h>
bool SDL_AudioStreamDevicePaused(SDL_AudioStream *stream);
π DESCRIPTION π
So here's the tea: unlike in SDL2, audio devices start in an unpaused state. Why? Because an app has to bind a stream before any audio will actually flow. no stream bound, no vibes coming out, periodt. π₯
π«Ά FUNCTION PARAMETERS π«Ά
streamβ the audio stream associated with the audio device you wanna query. that's the one we're checking on π
β RETURN VALUE β
Returns true if the device is valid and paused, false otherwise.
so basically: true = it's paused and everything's chill, false = either it's not paused or the device isn't valid, iykyk π
π§ THREAD SAFETY π§
It is safe to call this function from any thread. go off, multithreaded queen π
π AVAILABILITY π
This function is available since SDL 3.2.0. iconic behavior fr fr β¨
π SEE ALSO π
lowkey the whole pause/resume trio is a package deal, go read the other two bestie π
and that's the whole page!! brought to you by Simple Directmedia Layer, version SDL 3.4.18 β mwah, drink some water, bind your streams, and I'll see you in the next manpage ππ π¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms