Microsoft DirectX 8.1 (C++) |
The SetMaxGraphLatency method sets the maximum latency for the graph. You must call the IAMGraphStreams::SyncUsingStreamOffset method before calling this method.
Syntax
HRESULT SetMaxGraphLatency(
REFERENCE_TIME rtMaxGraphLatency
);
Parameters
rtMaxGraphLatency
[in] Reference time that specifies the maximum latency.
Return Values
Returns S_OK if successful. If SyncUsingStreamOffset was not called, the method returns E_FAIL. Otherwise, it returns another HRESULT value.
Remarks
At connection time, some live source filters use the maximum latency to determine the size of buffer to allocate. Calling this method before constructing the graph can help to ensure that sufficient buffers are allocated for the expected latency.
See Also