IXAudio2::GetDeviceDetails Method
Returns information about an audio output device.
Syntax
HRESULT GetDeviceDetails(
UINT32 Index,
XAUDIO2_DEVICE_DETAILS *pDeviceDetails
)
Parameters
- Index
[in] Index of the device to be queried. This value must be less than the count returned by IXAudio2::GetDeviceCount. - pDeviceDetails
[out] On success, pointer to an XAUDIO2_DEVICE_DETAILS structure that is returned.
Return Value
Returns S_OK if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.
Remarks
GetDeviceDetails and IXAudio2::GetDeviceCount are the only IXAudio2 methods that may be called before calling IXAudio2::Initialize.
Requirements
Header: Declared in xaudio2.h.