Function thindx::xinput::get_audio_device_ids
source · [−]pub fn get_audio_device_ids(
user_index: impl Into<User>
) -> Result<AudioDeviceIds, MethodError>
Expand description
[docs.microsoft.com] XInputGetAudioDeviceIds
Get XAudio2 / Windows Core Audio Device Names.
NOTE: This tends to succeed, even when no gamepad is connected, with empty/None paths.
Errors
- ERROR::BAD_ARGUMENTS - Invalid
User
orUser::Any
- ERROR::DEVICE_NOT_CONNECTED - Unreliably.
- THINERR::MISSING_DLL_EXPORT - XAudio2 / Windows Core Audio Device Names unavailable: XInput 1.3 or earlier
- THINERR::SLICE_TOO_LARGE - Audio device paths exceedingly large
System | Windows ver | Windows SKU | Behavior |
---|---|---|---|
Github Actions | 10.0.17763.2366 | Windows 2019 Server | ERROR::DEVICE_NOT_CONNECTED observed. |
“SACRILEGE” | 10.0.19041.1415 | Windows 10 Pro | Succeeds when called on missing gamepads |