IAMClockSlave::SetErrorTolerance
Microsoft DirectShow 9.0 |
IAMClockSlave::SetErrorTolerance
The SetErrorTolerance method sets the audio renderer's rate-matching tolerance.
Syntax
HRESULT SetErrorTolerance( DWORD dwTolerance );
Parameters
dwTolerance
[in] Specifies the maximum tolerance, in milliseconds. The value must be from 1 to 1000, inclusive.
Return Values
Returns an HRESULT value. Possible values include the following.
Value | Description |
E_FAIL | Failure. |
S_OK | Success. |
VFW_E_NOT_STOPPED | The filter graph is not stopped. |
Remarks
Changing the tolerance has no effect unless the audio renderer is matching rates with a different clock. If the audio renderer is the reference clock, the audio is always synchronized to the clock (by definition).
This method fails if the filter graph is not stopped.
Requirements
Header: Declared in Strmif.h; include Dshow.h.
Library: Use Strmiids.lib.
See Also