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 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
|
Minimum supported client |
Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
See also