Share via


IDirectMusicPerformance::AdjustTime

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

HRESULT AdjustTime(
  REFERENCE_TIME rtAmount
);

Parameters

  • rtAmount
    Amount of time to add or subtract. This can be a number from 10,000,000 through 10,000,000 (1 second through +1 second).

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return E_INVALIDARG.

Remarks

The adjusted time is used internally by DirectMusic. It is not reflected in the time retrieved by the IDirectMusicPerformance::GetTime method.

Requirements

OS Versions: Windows CE .NET 4.0 and Windows CE .NET 4.1.
Header: Dmusici.h.
Link Library: Dmusic.lib.

See Also

Timing | IDirectMusicPerformance::GetTime

 Last updated on Monday, April 12, 2004

© 1992-2002 Microsoft Corporation. All rights reserved.