SDL_LockAudio(3)

✨ SDL_LockAudio(3) β€” SDL API Reference ✨

omg hi bestie πŸ’– welcome to the SDL_LockAudio(3) page from the SDL API Reference. it's giving "audio callback control" and honestly? main character energy. let's get into it. πŸŽ€


πŸ¦‹ NAME πŸ¦‹

SDL_LockAudio β€” lock out the callback function. periodt. πŸ’…

πŸ’– SYNOPSIS πŸ’–

#include "SDL.h"

void SDL_LockAudio(void)

🌸 DESCRIPTION 🌸

okay so the lock manipulated by these functions protects the callback function. During a LockAudio period, you can be guaranteed that the callback function is not running. fr fr. 🫢

⚠️ Do not call these from the callback function or you will cause deadlock. no cap, that's the dangerous part πŸ’€

🌈 SEE ALSO 🌈

  • SDL_OpenAudio πŸ¦‹

mwah πŸ’‹ that's the whole page. it came from SDL, dated Tue 11 Sep 2001, 22:58 β€” source/version + date info, and we're done. slay. βœ¨πŸŽ€

πŸ“¦ where this page comes from