IMFRateSupport::IsRateSupported method (mfidl.h)
Queries whether the object supports a specified playback rate.
Syntax
HRESULT IsRateSupported(
[in] BOOL fThin,
[in] float flRate,
[in, out] float *pflNearestSupportedRate
);
Parameters
[in] 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.
[in] flRate
The playback rate to query.
[in, out] 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 |
---|---|
|
The object supports the specified rate. |
|
The object does not support reverse playback. |
|
The object does not support thinning. |
|
The object does not support the specified rate. |
Requirements
Requirement | Value |
---|---|
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 |