The IDirectMusicSegment::SetStartPoint method sets the point where the segment will start playing in response to a call to the IDirectMusicPerformance::PlaySegment method.
HRESULT SetStartPoint(
MUSIC_TIME mtStart
);
If the method succeeds, the return value is S_OK.
If it fails, the method may return DMUS_E_OUT_OF_RANGE.
By default the start point is 0, meaning the segment starts from the beginning.
The method fails if mtStart is greater than or equal to the length of the segment. If the segment does not already have a length, IDirectMusicSegment::SetLength must be called before this method.
The method does not affect any currently playing segment states created from this segment.
The start point of a cached segment persists even if the segment is released and then reloaded. To ensure that a segment is not subsequently reloaded from the cache, call IDirectMusicLoader::ReleaseObject on it before releasing it.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dmusici.h.
IDirectMusicSegment::GetStartPoint, IDirectMusicSegmentState::GetStartPoint, IDirectMusicSegment::SetLength, IDirectMusicSegment::SetLoopPoints, Segment Timing