|Microsoft DirectX 9.0|
The Clone method copies all or part of the segment.
HRESULT Clone( MUSIC_TIME mtStart, MUSIC_TIME mtEnd, IDirectMusicSegment** ppSegment );
Start of the part to copy. If this value is less than 0 or greater than the length of the segment, the segment is copied from the beginning.
End time of the part to copy. If this value is past the end of the segment, or 0, or less than mtStart, the segment is copied to the end.
Address of a variable that receives a pointer to the IDirectMusicSegment interface of the created segment. Use QueryInterface to obtain IDirectMusicSegment8. It is the caller's responsibility to call Release when finished with the segment.
If the method succeeds, the return value is S_OK, or S_FALSE if some tracks failed to copy.
If it fails, the method can return one of the error values shown in the following table.
Properties of the original segment, including start and loop points, number of repeats, and any toolgraph and default audiopath, are copied.
Header: Declared in dmusici.h.