SDL_PauseAudio(3)

okay so bestie, welcome to the SDL API Reference page for SDL_PauseAudio(3) πŸ’– this one is short but iconic, no cap.

✨ NAME ✨

SDL_PauseAudio β€” pauses and unpauses the audio callback processing 🎧

🌸 SYNOPSIS 🌸

#include "SDL.h"

void SDL_PauseAudio(int pause_on);

πŸŽ€ DESCRIPTION πŸŽ€

okay so SDL_PauseAudio pauses and unpauses the audio callback processing. periodt. You should call it with pause_on=0 after opening the audio device to start playing sound. This is so you can safely initialize data for your callback function after opening the audio device. And while it's paused? Silence will be written to the audio device during the pause. not me being a whole audio pause/unpause icon πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

  • SDL_GetAudioStatus
  • SDL_OpenAudio

mwah πŸ’‹ this page is from SDL, dated Tue 11 Sep 2001, 22:58, and it's SDL_PauseAudio(3). bye bestie 🫢

πŸ“¦ where this page comes from