Platform SDK: DirectX

DirectMusicSegmentState.GetStartTime

The DirectMusicSegmentState.GetStartTime method gets the performance time at which the segment started or will start playing.

object.GetStartTime() As Long

Parameters

object
Object expression that resolves to a DirectMusicSegmentState object.

Return Values

If the method succeeds, it 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 DirectMusicSegmentState.GetStartPoint from the value returned by this method.

See Also

DirectMusicSegment.SetStartPoint, DirectMusicSegment.GetStartPoint, DirectMusicSegmentState.GetStartPoint