IMFRateSupport::GetSlowestRate Method
Retrieves the slowest playback rate supported by the object.
Syntax
HRESULT GetSlowestRate(
[in] MFRATE_DIRECTION eDirection,
[in] BOOL fThin,
[out] float *pflRate
);
Parameter
eDirection [in]
Specifies whether to query to the slowest forward playback rate or reverse playback rate. The value is a member of the MFRATE_DIRECTION enumeration.fThin [in]
If TRUE, the method retrieves the slowest thinned playback rate. Otherwise, the method retrieves the slowest non-thinned playback rate. For information about thinning, see About Rate Control.pflRate [out]
Receives the slowest playback rate that the object supports.
Rückgabewert
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Rückgabecode | Beschreibung |
---|---|
S_OK | The method succeeded. |
MF_E_REVERSE_UNSUPPORTED | The object does not support reverse playback. |
MF_E_THINNING_UNSUPPORTED | The object does not support thinning. |
Hinweise
The value returned in plfRate represents a lower bound. Playback at this rate is not guaranteed. Call IMFRateSupport::IsRateSupported to check whether the boundary rate is supported. For example, a component that supports arbitrarily slow rates will return zero in pflRate, and applications should call IsRateSupported separately to determine whether the component supports rate 0.
If eDirection is MFRATE_REVERSE, the method retrieves the slowest reverse playback rate. This is a negative value, assuming the object supports reverse playback.
Anforderungen
Mindestens unterstützter Client |
Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 |
Header |
Mfidl.h |
Bibliothek |
Mfuuid.lib |