Microsoft DirectX 8.1 (Visual Basic)

DirectMusicPerformance8.AdjustTime

The 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(tAmount As Long)

Parts

object

Resolves to a DirectMusicPerformance8 object.

tAmount

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 DirectMusicPerformance8.GetClockTime method.