Microsoft DirectX 8.0 (C++) |
Creates a segment containing the pattern track.
HRESULT CreateSegment( IDirectMusicStyle* pStyle, IDirectMusicSegment** ppSegment );
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the following error values.
DMUS_E_NOT_INIT |
E_OUTOFMEMORY |
A pattern track is usually obtained from a segment object loaded from a file or resource, in which case the application already has the IDirectMusicSegment interface. This method is used for creating a segment when the pattern track object has been created by using CoCreateInstance.
Header: Declared in dmusici.h.