> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetShapeXmaInputBuffer0Size

> SetShapeXmaInputBuffer0Size

Sets the size of the left input buffer.

## Syntax

```cpp theme={null}
HRESULT SetShapeXmaInputBuffer0Size(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 size  
)  
```

### Parameters

*context*   \_Inout\_\
Type: [SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/reference/audio/shapexmacontext/structs/shape_xma_context.md)\*

Pointer to a [SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/reference/audio/shapexmacontext/structs/shape_xma_context.md) object.

*size*   \
Type: UINT32

The size of the left input buffer. Must be a multiple of 2048 bytes and no larger than `SHAPE_XMA_MAX_INPUT_BUFFER_SIZE`.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

To set the size of the right input buffer, use [SetShapeXmaInputBuffer1Size](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1size.md).

To get the size of the left input buffer, use [GetShapeXmaInputBuffer0Size](https://docs.xbox.com/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0size.md).

For more information, see the [XMA](https://docs.xbox.com/build/console-features/audio/overviews/shape-overview.md#ID4EYD) section of [Overview of SHAPE](https://docs.xbox.com/build/console-features/audio/overviews/shape-overview.md).

## Requirements

**Header:** shapexmacontext.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[ShapeXmaContext](https://docs.xbox.com/reference/audio/shapexmacontext/shapexmacontext_members.md)


## Related topics

- [GetShapeXmaInputBuffer0Size](https://docs.xbox.com/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0size.md)
- [SetShapeXmaInputBuffer1Size](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1size.md)
- [SetShapeXmaOutputBufferSize](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffersize.md)
- [ShapeXmaContext](https://docs.xbox.com/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [GetShapeXmaInputBuffer0](https://docs.xbox.com/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0.md)
