Microsoft DirectX 8.1 (Visual Basic)

DirectMusicSegmentState8.GetSeek

The GetSeek method retrieves the 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

Parts

object

Resolves to a DirectMusicSegmentState8 object.

Return Values

Returns the 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.