SDL_CloseAudioDevice - Close a previously-opened audio device.
Contents
Availability
This function is available since SDL 3.2.0.
Description
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.
Function Parameters
devid an audio device id previously returned by SDL_OpenAudioDevice().
Name
SDL_CloseAudioDevice - Close a previously-opened audio device.
See Also
SDL_OpenAudioDevice(3) Simple Directmedia Layer SDL 3.2.20 SDL_CloseAudioDevice(3)
Synopsis
#include<SDL3/SDL_audio.h>voidSDL_CloseAudioDevice(SDL_AudioDeviceIDdevid);
Thread Safety
It is safe to call this function from any thread.
