Platform SDK: DirectX

DirectMusicPerformance.GetLatencyTime

The DirectMusicPerformance.GetLatencyTime method retrieves the current latency time. Latency time is the time at which messages are sent to the port to be rendered.

object.GetLatencyTime() As Long

Parameters

object
Object expression that resolves to a DirectMusicPerformance object.

Return Values

If the method succeeds, it returns the latency time, in clock time units.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to DMUS_E_NO_MASTER_CLOCK