> ## 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.

# SetShapeXmaInputBuffer0(SHAPE_XMA_CONTEXT*, const void*)

> SetShapeXmaInputBuffer0(SHAPE_XMA_CONTEXT*, const void*)

Sets the address of the left input buffer.

## Syntax

```cpp theme={null}
HRESULT SetShapeXmaInputBuffer0(  
         SHAPE_XMA_CONTEXT* context,  
         const void* buffer  
)  
```

### 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.

*buffer*   \_In\_\
Type: void\*

Pointer to the left input buffer.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

To set the address of the right input buffer, use [SetShapeXmaInputBuffer1(SHAPE\_XMA\_CONTEXT\*, const void\*)](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1.md) or [SetShapeXmaInputBuffer1(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1_2.md).

To get the address of the left input buffer, use [GetShapeXmaInputBuffer0](https://docs.xbox.com/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0.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

- [SetShapeXmaInputBuffer1(SHAPE_XMA_CONTEXT*, const void*)](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1.md)
- [GetShapeXmaInputBuffer0](https://docs.xbox.com/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0.md)
- [SetShapeXmaInputBuffer1(SHAPE_XMA_CONTEXT*, APU_ADDRESS)](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1_2.md)
- [SetShapeXmaCurrentInputBuffer](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmacurrentinputbuffer.md)
- [ShapeXmaContext](https://docs.xbox.com/reference/audio/shapexmacontext/shapexmacontext_members.md)
