IDirectMusicPerformance::ReferenceToMusicTime
This method converts time in REFERENCE_TIME format to time in MUSIC_TIME format.
HRESULT ReferenceToMusicTime(
REFERENCE_TIME rtTime,
MUSIC_TIME* pmtTime
);
Parameters
- rtTime
Time in REFERENCE_TIME format. - pmtTime
Address of a variable to receive the converted time in MUSIC_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
If a master tempo has been set for the performance, it is taken into account when converting to music time. For more information, see Setting and Retrieving Global Parameters.
Because music time is less precise than reference time, rounding off occurs.
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::MusicToReferenceTime
Last updated on Monday, April 12, 2004
© 1992-2002 Microsoft Corporation. All rights reserved.