Function SDL_CloseAudioDevice
pub unsafe extern "C" fn SDL_CloseAudioDevice(devid: u32)
Available on crate feature
dep_sdl3
only.Expand description
Close a previously-opened audio device.
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.
§Parameters
devid
: an audio device id previously returned bySDL_OpenAudioDevice()
.
§Thread safety
It is safe to call this function from any thread.
§Availability
This function is available since SDL 3.2.0.