IXACTEngine::CreateStreamingWaveBank

Creates an IXACTWaveBank instance.

STDAPI CreateStreamingWaveBank(
  const XACT_WAVEBANK_STREAMING_PARAMETERS *pParms,
  IXACTWaveBank **ppWaveBank
);

Parameters

pParms
[in] Pointer to an XACT_WAVEBANK_STREAMING_PARAMETERS structure describing the streaming wave bank to create.
ppWaveBank
[out] Pointer to where to store the handle for the newly created IXACTWaveBank instance.

Return Values

Returns S_OK if successful, an error code otherwise.

Remarks

You should not attempt to use a sound associated with a streaming wave bank until you know the wave bank has been prepared. Create an XACTNOTIFICATIONTYPE_WAVEBANKPREPARED notification using IXACTEngine::RegisterNotification or query through IXACTWaveBank::GetState for the state of the wavebank until the XACT_WAVEBANKSTATE_PREPARED bit is set.

Requirements

Header: Declared in Xact.h.

See Also

IXACTEngine