如果你想为graph设置新的时钟,应用程序可以调用图表管理器的接口imediafilter::setsyncsource方法来选择一个参考时钟。
如果你给setsyncsource传递的参数为null,graph就不设置任何的参考时钟了。如果想恢复缺省的时钟,调用ifiltergraph::setdefaultsyncsource方法。
当graph的参考时钟改变时,graph通过the reference clock changes, the filter graph manager notifies each filter by calling its imediafilter::setsyncsource通知所有的filter。
2 clock times
directshow定义了两个相关的时间,参考时间reference time和 数据流时间stream time