The minidriver may call the StreamClassQueryMasterClockSync routine to synchronously query a stream's master clock.
VOID STREAMAPI
StreamClassQueryMasterClockSync(
IN HANDLE MasterClockHandle,
IN OUT PHW_TIME_CONTEXT TimeContext
);
None
Declared in strmini.h. Include strmini.h.
The routine must be called at or below DISPATCH_LEVEL. If the caller is running at a raised IRQL, it should use the asynchronous version, StreamClassQueryMasterClock, instead.
The class driver calls the master clock's StrMiniClock routine to query the clock.
On rare occasions, the graph manager switches the master clock. The class driver exposes a race condition in handling the new master clock. If the minidriver calls a stream class master clock routine immediately after it receives a new clock from the class driver, the class driver may produce unexpected results.
HW_TIME_CONTEXT, StreamClassQueryMasterClock, StrMiniReceiveStreamControlPacket, StrMiniClock