DirectX SDK |
The DirectMusicSegmentState.GetStartTime method gets the performance time at which the segment started or will start playing.
object.GetStartTime() As Long
If the method succeeds, it returns the start time, in music time, of this instance of the segment.
If the method fails, it raises an error, and Err.Number can be set to DMUS_E_BUFFER_EMPTY.
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 DirectMusicSegmentState.GetStartPoint from the value returned by this method.
DirectMusicSegment.SetStartPoint, DirectMusicSegment.GetStartPoint, DirectMusicSegmentState.GetStartPoint