CBaseFilter.SetSyncSource method

The SetSyncSource method sets a reference clock for the filter. This method implements the IMediaFilter::SetSyncSource method.

Syntax

HRESULT SetSyncSource(
   IReferenceClock *pClock
);

Parameters

pClock

Pointer to the clock's IReferenceClock interface, or NULL.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header
Amfilter.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CBaseFilter Class