Determine if an audio device is a playback device (instead of recording).
Defined in <SDL3/SDL_audio.h>
bool SDL_IsAudioDevicePlayback(SDL_AudioDeviceID devid);
SDL_AudioDeviceID | devid | the device ID to query. |
(bool) Returns true if devid is a playback device, false if it is recording.
This function may return either true or false for invalid device IDs.
It is safe to call this function from any thread.
This function is available since SDL 3.2.0.