SDL_CloseAudioDevice(3)

SDL_CloseAudioDevice3

Close a previously-opened audio device.

Usage

#include "SDL3/SDL.h"

void SDL_CloseAudioDevice(SDL_AudioDeviceID devid);

Header file

Defined in SDL3/SDL_audio.h

Overview

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 ().

Thread safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.