Share via


IXACTEngine::CreateInMemoryWaveBank

IXACTEngine::CreateInMemoryWaveBank

Creates an in-memory wave bank for use by the XACT engine.

[Code-driven][Content-driven]

  HRESULT 
  CreateInMemoryWaveBank(
  const void *pvBuffer,
  DWORD dwSize,
  DWORD dwFlags,
  DWORD dwAllocAttributes,
  IXACTWaveBank **ppWaveBank
);

Parameters

  • pvBuffer
    [in] Pointer to the data that is used to create the wave bank.
  • dwSize
    [in] Value that indicates the size of the data used to create the wave bank.
  • dwFlags
    [in] Flag values that indicate how the wave bank is created. This parameter can be zero or the value shown in the following table.
  • dwAllocAttributes
    [in] Flag values that indicate the attributes of the memory buffer that the pvBuffer parameter points to.
  • ppWaveBank
    [out] Pointer to an IXACTWaveBank object that is returned.

Return Values

Returns S_OK if successful. Otherwise, an error code.

Requirements

Header: Declared in Xact.h.

Library: Use Xact.lib.

See Also

IXACTEngine