Microsoft DirectX 8.1 (Visual Basic) |
The GetStartTime method retrieves the performance time at which the segment started or will start playing.
object.GetStartTime() As Long
Parts
object
Resolves to a DirectMusicSegmentState8 object.
Return Values
Returns the start time, in music time, of this instance of the segment.
Error Codes
If the method fails, it raises an error, and Err.Number can be set to DMUS_E_BUFFER_EMPTY.
Remarks
If the segment was started from some point other than the beginning, you can retrieve the time at which the beginning of the segment would have fallen by subtracting the time returned by DirectMusicSegmentState8.GetStartPoint from the value returned by this method.
See Also