Skip to main content

SetShapeXmaInputBufferReadOffset

Sets the read offset of the current input buffer.

Syntax

Parameters

context   _Inout_
Type: SHAPE_XMA_CONTEXT*
Pointer to a SHAPE_XMA_CONTEXT object. offsetInBits   
Type: UINT32
The offset, in bits, from the beginning of the input buffer.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

For the hardware XMA decoder, the read offset for XMA contexts should normally be initialized to 32, or 32 plus some multiple of 2048 bytes. To get the current input buffer, use GetShapeXmaCurrentInputBuffer. To get the read offset of the current input buffer, use GetShapeXmaInputBufferReadOffset. 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