Microsoft DirectX 8.0 (C++) |
Copies all or part of the segment and the tracks that it contains.
HRESULT Clone( MUSIC_TIME mtStart, MUSIC_TIME mtEnd, IDirectMusicSegment** ppSegment );
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 following error values:
E_OUTOFMEMORY |
E_POINTER |
Properties of the original segment, including start and loop points, number of repeats, and any toolgraph and default audiopath, are copied to the clone.
For style-based segments, if mtStart is greater than 0, it should be on a measure boundary.
Header: Declared in dmusici.h.