Function SDL_GetAudioDeviceName

pub unsafe extern "C" fn SDL_GetAudioDeviceName(
    devid: u32,
) -> *const i8
Available on crate feature dep_sdl3 only.
Expand description

Get the human-readable name of a specific audio device.

§Parameters

  • devid: the instance ID of the device to query.

§Return value

Returns the name of the audio device, or NULL on failure; call SDL_GetError() for more information.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also