Function SDL_IsAudioDevicePlayback

pub unsafe extern "C" fn SDL_IsAudioDevicePlayback(devid: u32) -> bool
Available on crate feature dep_sdl3 only.
Expand description

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

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

§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.