IMFRateSupport::IsRateSupported method

Queries whether the object supports a specified playback rate.

Syntax


HRESULT IsRateSupported(
  [in]      BOOL  fThin,
  [in]      float flRate,
  [in, out] float *pflNearestSupportedRate
);

Parameters

fThin [in]

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 [in]

The playback rate to query.

pflNearestSupportedRate [in, out]

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 codeDescription
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 | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

How to Determine Supported Rates
IMFRateSupport

 

 

Show: