SDL Wiki
(This is the documentation for SDL3, which is the current stable version. SDL2 was the previous version!)

SDL_IsAudioDevicePlayback

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

Header File

Defined in <SDL3/SDL_audio.h>

Syntax

bool SDL_IsAudioDevicePlayback(SDL_AudioDeviceID devid);

Function Parameters

SDL_AudioDeviceID devid the device ID to query.

Return Value

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

Remarks

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

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since SDL 3.2.0.


CategoryAPI, CategoryAPIFunction, CategoryAudio


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.