IXACTEngine::CreateSoundBank

Creates a sound bank for use by the XACT engine.

STDAPI CreateSoundBank(
  void *pvBuffer,
  DWORD dwSize,
  DWORD dwFlags,
  DWORD dwAllocAttributes,
  IXACTSoundBank **ppSoundBank
);

Parameters

pvBuffer
[in] Pointer to the data used to create the sound bank.
dwSize
[in] Value indicating the size of the data used to create the sound bank.
dwFlags
[in] Flag values indicating how the sound bank should be created. This parameter can be zero or the value shown in the following table.
Value Description
XACT_FLAG_API_CREATE_MANAGEDATA

Indicates that XACT should free the buffer pointed to by the pvBuffer parameter when the sound bank data is released.

Note    XACT will not attempt to free the memory if the buffer allocation fails.

dwAllocAttributes
[in] This parameter has no relevance and is ignored.
ppSoundBank
[out] Pointer to a returned IXACTSoundBank object.

Return Values

Returns S_OK if successful, an error code otherwise.

Requirements

Header: Declared in Xact.h.

See Also

IXACTEngine