IXAudio2::GetDeviceDetails Method

Returns information about an audio output device.

Syntax

HRESULT GetDeviceDetails(
         UINT32 Index,
         XAUDIO2_DEVICE_DETAILS *pDeviceDetails
)

Parameters

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.

See Also

IXAudio2
How to: Enumerate Audio Devices