SDL_CloseAudioDevice
Close a previously-opened audio device.
- Provided by: libsdl3-doc (Version: 3.2.20+ds-2)
- Source: libsdl3
- Report a bug
Close a previously-opened audio device.
#include <SDL3/SDL_audio.h>
void SDL_CloseAudioDevice(SDL_AudioDeviceID devid);
The application should close open audio devices once they are no longer needed.
This function may block briefly while pending audio data is played by the hardware, so that applications don't drop the last buffer of data they supplied if terminating immediately afterwards.
It is safe to call this function from any thread.
This function is available since SDL 3.2.0.