logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                       SDL_IsAudioDevicePlayback(3)

Description

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

Function Parameters

devid  the device ID to query.

Header File

       Defined in SDL3/SDL_audio.h

Name

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

Return Value

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

Synopsis

#include"SDL3/SDL.h"boolSDL_IsAudioDevicePlayback(SDL_AudioDeviceIDdevid);

Thread Safety

       It is safe to call this function from any thread.

See Also