IMFAudioMediaType::GetAudioFormat method (mfobjects.h)
[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();
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | mfobjects.h (include Mfidl.h) |
Library | Mfuuid.lib |