Scroll to navigation

SDL_CloseAudioDevice(3) SDL3 FUNCTIONS SDL_CloseAudioDevice(3)

NAME

SDL_CloseAudioDevice - Close a previously-opened audio device.

SYNOPSIS

#include "SDL3/SDL.h"
void SDL_CloseAudioDevice(SDL_AudioDeviceID devid);

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

an audio device id previously returned by SDL_OpenAudioDevice ()

THREAD SAFETY

It is safe to call this function from any thread.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_OpenAudioDevice(3)

SDL 3.1.0 SDL