Microsoft DirectX 9.0


The SetErrorTolerance method sets the audio renderer's rate-matching tolerance.


HRESULT SetErrorTolerance(
  DWORD 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.


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 unless the filter graph is stopped.

See Also