Function fermium::audio::SDL_LockAudio

source ·
pub unsafe extern "C" fn SDL_LockAudio()
Expand description

Locks the default audio device.

The lock manipulated by this function protects the audio callback function. During an SDL_LockAudio/SDL_UnlockAudio pair, you can be guaranteed that the callback function is not running.

Do not call these from the callback function or you will cause deadlock.