Windows Dev Center

IMFAudioMediaType::GetAudioFormat method

[GetAudioFormat is no longer available for use as of Windows 7. Instead, use the media type attributes to get the properties of the audio format.]

Returns a pointer to a WAVEFORMATEX structure that describes the audio format.

Syntax


const WAVEFORMATEX* GetAudioFormat();

Parameters

This method has no parameters.

Return value

This method returns a pointer to a WAVEFORMATEX structure.

Remarks

If you need to convert the media type into a WAVEFORMATEX structure, call MFCreateWaveFormatExFromMFMediaType.

There are no guarantees about how long the returned pointer is valid.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows XP with Service Pack 2 (SP2) and later.
  • Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (October 2006 Update Rollup for Windows XP Media Center Edition) installed.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

End of client support

Windows Vista

End of server support

Windows Server 2008

Header

Mfobjects.h (include Mfidl.h)

Library

Mfuuid.lib

See also

Audio Media Types
IMFAudioMediaType
Media Types

 

 

Community Additions

ADD
Show:
© 2015 Microsoft