IAudioMediaType::GetAudioFormat method (audiomediatype.h)

The GetAudioFormat method returns the WAVEFORMATEX structure for the audio data format.

Syntax

const WAVEFORMATEX * GetAudioFormat();

Return value

The GetAudioFormat method returns a pointer to a WAVEFORMATEX structure.

Remarks

The pointer that is returned is valid only while the IAudioMediaType interface is referenced.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of Windows.
Target Platform Desktop
Header audiomediatype.h (include Audiomediatype.h)
Library Audiomediatype.idl
IRQL All levels

See also

WAVEFORMATEX