Microsoft DirectX 9.0 SDK Update (October 2004) |
The Init method initializes the track. This method is called by a segment when a track is added.
Syntax
HRESULT Init(
IDirectMusicSegment* pSegment
);
Parameters
pSegment
Segment to which this track belongs.
Return Values
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the error values shown in the following table.
Return code |
DMUS_E_NOT_INIT |
E_OUTOFMEMORY |
E_POINTER |
Remarks
If the track plays messages, it should call IDirectMusicSegment8::SetPChannelsUsed in the Init method.
This method should be called whenever track data is changed after the track is inserted in a segment.
Requirements
Header: Declared in dmplugin.h.
See Also