IMFRateSupport::IsRateSupported method (mfidl.h)

Queries whether the object supports a specified playback rate.

Syntax

HRESULT IsRateSupported(
  BOOL  fThin,
  float flRate,
  float *pflNearestSupportedRate
);

Parameters

fThin

If TRUE, the method queries whether the object supports the playback rate with thinning. Otherwise, the method queries whether the object supports the playback rate without thinning. For information about thinning, see About Rate Control.

flRate

The playback rate to query.

pflNearestSupportedRate

If the object does not support the playback rate given in flRate, this parameter receives the closest supported playback rate. If the method returns S_OK, this parameter receives the value given in flRate. This parameter can be NULL.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The object supports the specified rate.
MF_E_REVERSE_UNSUPPORTED
The object does not support reverse playback.
MF_E_THINNING_UNSUPPORTED
The object does not support thinning.
MF_E_UNSUPPORTED_RATE
The object does not support the specified rate.

Requirements

   
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

How to Determine Supported Rates

IMFRateSupport