Platform SDK: DirectX |
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
If the method succeeds, it returns the current seek pointer, in music time.
If the method fails, it raises an error, and Err.Number is set.
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.