![]() |
![]() |
Creates an in-memory wave bank for use by the XACT engine.
STDAPI CreateInMemoryWaveBank( void *pvBuffer, DWORD dwSize, DWORD dwFlags, DWORD dwAllocAttributes, IXACTWaveBank **ppWaveBank );
Xbox 360: Memory for this member must be allocated using XMemAlloc when specifying the XACT_FLAG_API_CREATE_MANAGEDATA flag.
Windows: Memory for this member must be allocated using CoTaskMemAlloc when specifying the XACT_FLAG_API_CREATE_MANAGEDATA flag.
Value | Description |
---|---|
XACT_FLAG_API_CREATE_MANAGEDATA |
Indicates that XACT should free the buffer pointed to by the pvBuffer parameter when the wave bank data is released. Note XACT will not attempt to free the memory if the buffer allocation fails. |
Xbox 360: This parameter is needed only if XACT_FLAG_API_CREATE_MANAGEDATA is specified in dwFlags, so that XMemFree can receive the correct values when the XACT frees the buffer. Otherwise, dwAllocAttributes is ignored.
These flags should match the XALLOC_ATTRIBUTES values that were specified to XMemAlloc when the memory buffer pointed to by pvBuffer was allocated.
Windows: This parameter has no relevance and is ignored.
Returns S_OK if successful, an error code otherwise.
Header: Declared in Xact.h.