XAPOAlloc macro (xapo.h)

Memory allocation macro used by IXAPO methods that must allocate arbitrary sized structures that are subsequently returned to the application.

Syntax

void XAPOAlloc(
   size
);

Parameters

size

Size, in bytes, of the memory block to be allocated.

Return value

None

Remarks

XAPOFree and XAPOAlloc are memory allocation macros that allow one module to allocate memory and another to free it, by guaranteeing that the same heap manager is used regardless of differences between the build environments of the two modules.

Xbox 360
XAPOFree and XAPOAlloc resolve to XMemAlloc and XMemFree on Xbox 360.
 
Windows
XAPOFree and XAPOAlloc resolve to CoTaskMemAlloc and CoTaskMemFree.
 

Platform Requirements

Windows 10 (XAudio2.9); Windows 8, Windows Phone 8 (XAudio 2.8); DirectX SDK (XAudio 2.7)

Requirements

Requirement Value
Target Platform Windows
Header xapo.h

See also

Macros