Platform SDK: DirectX

DirectMusicSegmentState.GetSeek

The DirectMusicSegmentState.GetSeek method retrieves the current seek pointer in the segment state. This is immediately after the last point in the segment for which messages have been generated.

object.GetSeek() As Long

Parameters

object
Object expression that resolves to a DirectMusicSegmentState object.

Return Values

If the method succeeds, it returns the current seek pointer, in music time.

Error Codes

If the method fails, it raises an error, and Err.Number is set.

Remarks

When a segment is stopped, messages that have been sent but not yet queued to the port buffer are flushed. Therefore, if you stop a segment and then restart it at the last seek pointer, some notes are lost.