DirectX SDK |
The DirectMusicSegment.Clone method creates a copy of all or part of the segment.
object.Clone(mtStart As Long, _ mtEnd As Long) As DirectMusicSegment
If the method succeeds, it returns a DirectMusicSegment object.
If the method fails, it raises an error, and Err.Number can be set to DMUS_E_OUTOFMEMORY.
The start point and loop points set by the DirectMusicSegment.SetStartPoint and DirectMusicSegment.SetLoopPoints methods are set to their default values (0, and 0 to the end of the segment respectively) inside the clone. The number of repeats is also reset to 0.
For style-based segments, if mtStart is greater than 0, it should be on a measure boundary.