IDirectMusicPerformance::MusicToReferenceTime

This method converts time in MUSIC_TIME format to time in REFERENCE_TIME format.

HRESULT MusicToReferenceTime(
  MUSIC_TIME mtTime,
  REFERENCE_TIME* prtTime
);

Parameters

  • mtTime
    Time in MUSIC_TIME format to convert.
  • prtTime
    Address of a variable to receive the converted time in REFERENCE_TIME format.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return one of the following error values:

E_POINTER
DMUS_E_NO_MASTER_CLOCK

Remarks

Because reference time has a greater precision than music time, a time that has been converted from reference time to music time, and then back again, probably does not have its original value.

Requirements

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

See Also

Clock Time vs. Music Time | IDirectMusicPerformance::ReferenceToMusicTime

 Last updated on Monday, April 12, 2004

© 1992-2002 Microsoft Corporation. All rights reserved.