Prepares a cue instance for playback.
HRESULT Prepare( XACTINDEX nCueIndex, DWORD dwFlags, XACTTIME timeOffset, IXACTCue **ppCue );
Returns S_OK if successful, an error code otherwise.
This method returns a valid cue instance, ready to be played. All allocations and, if necessary, stream priming are done by this method.
IXACTSoundBank::Prepare is called internally by IXACTSoundBank::Play, it is only necessary to call IXACTSoundBank::Prepare directly if you want to ensure that the sound starts the moment you call IXACTSoundBank::Play.
Header: Declared in Xact.h.