Platform SDK: DirectX

DirectMusicPerformance.AdjustTime

The DirectMusicPerformance.AdjustTime method adjusts the internal performance time forward or backward. This is mostly used to compensate for drift when synchronizing to another source.

object.AdjustTime(rtAmount As Long)

Parameters

object
Object expression that resolves to a DirectMusicPerformance object.
rtAmount
Amount of time, in clock time units, to add or subtract. This can be a number in the range from –1000 through 1000 (–1 second through +1 second).

Error Codes

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

Remarks

The adjusted time is used internally by DirectMusic. It is not reflected in the time retrieved by the DirectMusicPerformance.GetClockTime method.