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