SDL_GetAudioStatus(3)

✨ SDL_GetAudioStatus(3) ✨

okay bestie, we're in the SDL API Reference and this one is a lil baby function that just tells you what your audio is doing rn πŸŽ§πŸ’–


🌸 NAME 🌸

SDL_GetAudioStatus β€” get the current audio state πŸ‘€


πŸŽ€ SYNOPSIS πŸŽ€

#include "SDL.h"

SDL_audiostatusSDL_GetAudioStatus(void);
yes bestie, that's the signature exactly as it is, no space between SDL_audiostatus and SDL_GetAudioStatus, don't come for me, I'm just the messenger πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so first of all, here's the enum you're working with, and she's iconic:

typedef enum{
  SDL_AUDIO_STOPPED,
  SDL_AUDIO_PAUSED,
  SDL_AUDIO_PLAYING
} SDL_audiostatus;

so you call this and it returns either SDL_AUDIO_STOPPED, SDL_AUDIO_PAUSED or SDL_AUDIO_PLAYING β€” depends on what the current audio state is at that exact moment. like a vibe check but for sound πŸ”₯

that's it. that's the whole function. she's simple, she's honest, she's lowkey the moment πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

  • SDL_PauseAudio β€” go look at this one too, bestie, they're friends fr fr

SDL Β· Tue 11 Sep 2001, 22:58 Β· and that's the tea πŸ“ β€” written back in 2001 but the girlies are still calling her, no cap 🫢✨

πŸ“¦ where this page comes from