Skip to main content

SetShapeXmaOverlapAddBuffer(SHAPE_XMA_CONTEXT*, void*)

Sets the address of the overlap-add buffer.

Syntax

Parameters

context   _Inout_
Type: SHAPE_XMA_CONTEXT*
Pointer to a SHAPE_XMA_CONTEXT object. buffer   _In_
Type: void*
Pointer to the overlap-add buffer. Must be 128-byte aligned.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

The size of the overlap-add buffer must be 256 bytes for mono or 512 bytes for stereo. To set the address of the overlap-add buffer by using a physical address, use SetShapeXmaOverlapAddBuffer(SHAPE_XMA_CONTEXT*, APU_ADDRESS). To get the current size of the overlap-add buffer, use GetShapeXmaOverlapAddBuffer. For more information, see the XMA section of Overview of SHAPE.

Requirements

Header: shapexmacontext.h Supported platforms: XBOX One family consoles and XBOX Series consoles

See also

ShapeXmaContext
Last modified on August 20, 2026