[−][src]Function sdl2_sys::SDL_GetAudioDeviceName
pub unsafe extern "C" fn SDL_GetAudioDeviceName(
index: c_int,
iscapture: c_int
) -> *const c_char
Get the human-readable name of a specific audio device. Must be a value between 0 and (number of audio devices-1). Only valid after a successfully initializing the audio subsystem. The values returned by this function reflect the latest call to SDL_GetNumAudioDevices(); recall that function to redetect available hardware.
The string returned by this function is UTF-8 encoded, read-only, and managed internally. You are not to free it. If you need to keep the string for any length of time, you should make your own copy of it, as it will be invalid next time any of several other SDL functions is called.