Microsoft DirectX 8.1 (Visual Basic) |
The GetResolvedTime method adjusts a given time to a given boundary.
object.GetResolvedTime( _
ctTime As Long, _
flags As Long _
) As Long
Parts
object
Resolves to a DirectMusicPerformance8 object.
ctTime
Time to resolve, in clock time units. If this is less than the current time, the current time is used.
flags
One or more of the following CONST_DMUS_SEGF_FLAGS describing the resolution desired:
Value | Description |
DMUS_SEGF_AFTERLATENCYTIME | Resolve to a time after the latency time. |
DMUS_SEGF_AFTERPREPARETIME | Resolve to a time after the Prepare Time. |
DMUS_SEGF_AFTERQUEUETIME | Resolve to a time after the queue time. |
DMUS_SEGF_BEAT | Resolve to a time on a beat boundary. |
DMUS_SEGF_GRID | Resolve to a time on a grid boundary. |
DMUS_SEGF_MARKER | Resolve to a marker. |
DMUS_SEGF_MEASURE | Resolve to a time on a measure boundary. |
DMUS_SEGF_SEGMENTEND | Resolve to the end of the segment. |
Return Values
Returns the resolved time.
Error Codes
If the method fails, it raises an error, and Err.Number is set.
Remarks
The time returned is the soonest time after the supplied time that falls on the specified boundary.