The IDirectMusicPerformance::MusicToReferenceTime method converts time in MUSIC_TIME format to time in REFERENCE_TIME format.
HRESULT MusicToReferenceTime(
MUSIC_TIME mtTime,
REFERENCE_TIME* prtTime
);
If the method succeeds, the return value is S_OK.
If it fails, the method may return one of the following error values:
E_POINTER |
DMUS_E_NO_MASTER_CLOCK |
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, will likely not have its original value.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dmusici.h.
IDirectMusicPerformance::ReferenceToMusicTime, Reference Time vs. Music Time