IDirectMusicPerformance8::AdjustTime

DirectMusic

Microsoft DirectX 9.0 SDK Update (Summer 2004)

IDirectMusicPerformance8::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.

Syntax

HRESULT AdjustTime(
  REFERENCE_TIME rtAmount
);

Parameters

rtAmount

Amount of time to add. This can be a value in the range from -10,000,000 to 10,000,000 (–1 second to +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 IDirectMusicPerformance8::GetTime method.

Requirements

  Header: Declared in dmusici.h.

See Also


© 2004 Microsoft Corporation. All rights reserved.