SDL_IsAudioDevicePlayback(3)
SDL_IsAudioDevicePlayback ππ¦
hiii bestie!! welcome to the SDL3 FUNCTIONS corner of the manual. this page is all about one tiny but iconic question: is this audio device a playback device, or is it out here recording? let's get into it π
β¨ NAME β¨
SDL_IsAudioDevicePlayback β determine if an audio device is a playback device (instead of recording). periodt.
β¨ SYNOPSIS β¨
#include <SDL3/SDL_audio.h>
bool SDL_IsAudioDevicePlayback(SDL_AudioDeviceID devid);
β¨ DESCRIPTION β¨
okay so real talk: this function may return either true or false for invalid device IDs. no cap, that's just the vibe. π
β¨ FUNCTION PARAMETERS β¨
devidβ the device ID to query. that's the one you're asking about, bestie π
β¨ RETURN VALUE β¨
returns true if devid is a playback device, false if it is recording. literally that simple. π
β¨ THREAD SAFETY β¨
it is safe to call this function from any thread. so go off, call it from wherever, it's giving thread-safe π§β¨
β¨ AVAILABILITY β¨
this function is available since SDL 3.2.0. iconic behavior fr fr π
okay bestie that's the whole page!! brought to you by Simple Directmedia Layer, version SDL 3.4.18, and the manual page SDL_IsAudioDevicePlayback(3) π«Άπβ¨
π¦ 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