sdlCloseAudioDevice function
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.
\param devid an audio device id previously returned by SDL_OpenAudioDevice().
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
\sa SDL_OpenAudioDevice
extern SDL_DECLSPEC void SDLCALL SDL_CloseAudioDevice(SDL_AudioDeviceID devid)
Implementation
void sdlCloseAudioDevice(int devid) {
final sdlCloseAudioDeviceLookupFunction = libSdl3.lookupFunction<
Void Function(Uint32 devid),
void Function(int devid)>('SDL_CloseAudioDevice');
return sdlCloseAudioDeviceLookupFunction(devid);
}