SDL_IsAudioDevicePlayback(3)

SDL_IsAudioDevicePlayback3

Determine if an audio device is a playback device (instead of recording).

Usage

#include "SDL3/SDL.h"

bool SDL_IsAudioDevicePlayback(SDL_AudioDeviceID devid);

Header file

Defined in SDL3/SDL_audio.h

Overview

This function may return either true or false for invalid device IDs.

Function parameters

devid

the device ID to query.

Return value

Returns true if devid is a playback device, false if it is recording.

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.