IAudioFormatEnumerator::GetFormat method (spatialaudioclient.h)

Gets the format with the specified index in the list. The formats are listed in order of importance. The most preferable format is first in the list.

Syntax

HRESULT GetFormat(
  [in]  UINT32       index,
  [out] WAVEFORMATEX **format
);

Parameters

[in] index

The index of the item in the list to retrieve.

[out] format

Pointer to a pointer to a WAVEFORMATEX structure describing a supported audio format.

Return value

If the method succeeds, it returns S_OK.

Requirements

Requirement Value
Target Platform Windows
Header spatialaudioclient.h

See also

IAudioFormatEnumerator