|Microsoft DirectX 9.0|
The InitPlay method initializes the play state. This method was for internal use and is not implemented in versions later than DirectX 7.0.
HRESULT InitPlay( IDirectMusicSegmentState** ppSegState, IDirectMusicPerformance* pPerformance, DWORD dwFlags );
Address of a variable that receives a pointer to the IDirectMusicSegmentState8 interface that is created in response to this method call and is used to hold state data. It is returned with a reference count of 1, so a call to its Release method fully releases it.
Address of the IDirectMusicPerformance8 interface. This is needed by the segment and segment state to call methods on the performance object.
DMUS_SEGF_FLAGS that modify the track's behavior.
In DirectX 8.0 and later, the method returns E_NOTIMPL.
In earlier versions, if the method succeeds, the return value is S_OK. If it fails, it can return one of the error values shown in the following table.
Header: Declared in dmusici.h.