IMFTranscodeProfile::GetAudioAttributes method (mfidl.h)

Gets the audio stream settings that are currently set in the transcode profile.

Syntax

HRESULT GetAudioAttributes(
  [out] IMFAttributes **ppAttrs
);

Parameters

[out] ppAttrs

Receives a pointer to the IMFAttributes interface of the attribute store containing the current audio stream settings. Caller must release the interface pointer.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If there are no audio attributes set in the transcode profile, the call to GetAudioAttributes succeeds and ppAttrs receives NULL.

To get a specific attribute value, the caller must call the appropriate IMFAttributes method depending on the data type of the attribute, and specify the attribute name. The following topics describe the audio attributes:

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header mfidl.h

See also

Attributes in Media Foundation

IMFTranscodeProfile

Transcode API