Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly
SDL_LockAudio(3) SDL API Reference SDL_LockAudio(3)

NAME

SDL_LockAudio - Lock out the callback function

SYNOPSIS

#include "SDL.h"
 
void SDL_LockAudio(void)

DESCRIPTION

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. Do not call these from the callback function or you will cause deadlock.

SEE ALSO

SDL_OpenAudio
Tue 11 Sep 2001, 22:58 SDL
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org