Interface IReferenceClock
Defines the contract for a reference clock that provides timing information for media synchronization.
public interface IReferenceClock
Methods
ActivateRefClock()
Activates the reference clock. This method must be called before the clock can provide timing information.
void ActivateRefClock()
GetCurrentRefClock(out long, out long)
Gets the current reference time and the reference clock's quant duration.
void GetCurrentRefClock(out long currentRefClock, out long quantDuration)
Parameters
currentRefClocklongWhen this method returns, contains the current reference time in ticks (1/10,000,000 of a second), or MinValue if the clock is not activated or unavailable.
quantDurationlongWhen this method returns, contains the increment value of the reference clock in ticks. For example, if the reference clock is a video source, the quant duration is the video frame duration.