Platform SDK: DirectX

DirectMusicPerformance.MusicToClockTime

The DirectMusicPerformance.MusicToClockTime method converts time in music time format to time in clock time format.

object.MusicToClockTime(mtTime As Long) As Long

Parameters

object
Object expression that resolves to a DirectMusicPerformance object.
mtTime
Time in music time format to convert.

Return Values

If the method succeeds, it returns the time, in clock time units.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to DMUS_E_NO_MASTER_CLOCK.

Remarks

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

See Also

DirectMusicPerformance.ClockToMusicTime, Clock Time vs. Music Time