SDL_AUDIO_MASK_SIGNED(3)
π SDL_AUDIO_MASK_SIGNED π
okay so bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is a lil macro called SDL_AUDIO_MASK_SIGNED. it's a mask, it's a bit flag, it's lowkey iconic π
β¨ NAME β¨
SDL_AUDIO_MASK_SIGNED</purl> β the mask of bits inside an SDL_AudioFormat that hold the signed data flag. that's it, that's the whole job π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_audio.h>
#define SDL_AUDIO_MASK_SIGNED (1u<<15)
so you just pull in the header and the macro is right there, vibing at (1u<<15). no cap. π
π¦ DESCRIPTION π¦
okay real talk: this macro is the raw bit mask. it shows you which bits in an SDL_AudioFormat are the ones carrying the signed-data flag.
but likeβ¦ generally you should use SDL_AUDIO_ISSIGNED instead of poking this macro directly. that's the actual bestie-approved move π«Ά
not me telling you to use the friendlier macro instead of raw maskingβ¦ it's giving "use the wrapper, babe" energy, and honestly? correct. π
β AVAILABILITY β
this macro has been serving since SDL 3.2.0. she's new-ish, she's fresh, she ate. π₯
π bye bestie π
and that's the whole page, fr fr. this cutie was brought to you by the Simple Directmedia Layer girlies, from SDL 3.4.18 β SDL_AUDIO_MASK_SIGNED(3), periodt. πβ¨
π¦ 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