Microsoft DirectX 8.0 (Visual Basic) |
Sets the point at which the segment starts playing in response to a call to the DirectMusicPerformance8.PlaySegmentEx method.
object.SetStartPoint(mtStart As Long)
If the method fails, it raises an error, and Err.Number can be set to DMUS_E_OUT_OF_RANGE.
By default, the start point is 0, meaning that the segment starts from the beginning.
The method does not affect any currently playing segment states created from this segment.
A segment that is reused might be loaded from an internal cache, in which case it will have the same start point it had the last time this value was set. It is a good idea to reset the start point to 0 before releasing a segment that might be played again.
DirectMusicSegment8.GetStartPoint, DirectMusicSegmentState8.GetStartPoint, DirectMusicSegment8.SetLoopPoints