IAudioProcessingObjectPreferredFormatSupport::GetPreferredOutputFormat method (audioengineextensionapo.h)

Callback function that allows APOs to specify a preferred output format for the provided input format.

Syntax

HRESULT GetPreferredOutputFormat(
  [in]  IAudioMediaType *inputFormat,
  [out] IAudioMediaType **preferredFormat
);

Parameters

[in] inputFormat

An IAudioMediaType representing the input format associated with the callback.

[out] preferredFormat

An IAudioMediaType representing the preferred input format for the APO.

Return value

An HRESULT.

Requirements

Requirement Value
Minimum supported client Windows 11, version 23H2
Header audioengineextensionapo.h