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

# GetShapeXmaCurrentInputBuffer

> GetShapeXmaCurrentInputBuffer

# GetShapeXmaCurrentInputBuffer

获取当前输入缓冲区。

## 语法

```cpp theme={null}
UINT32 GetShapeXmaCurrentInputBuffer(  
         const SHAPE_XMA_CONTEXT* context  
)  
```

### 参数

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

指向 [SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/structs/shape_xma_context.md) 对象的指针。

### 返回值

Type: UINT32

当前输入缓冲区。0 指定左缓冲区,1 指定右缓冲区。

## 备注

若要获取指向左输入缓冲区的指针,请使用 [GetShapeXmaInputBuffer0](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0.md)。若要获取指向右输入缓冲区的指针,请使用 [GetShapeXmaInputBuffer1](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/getshapexmainputbuffer1.md)。

若要设置当前输入缓冲区,请使用 [SetShapeXmaCurrentInputBuffer](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/setshapexmacurrentinputbuffer.md)。

有关详细信息,请参阅 [Overview of SHAPE](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/shape-overview.md) 的 [XMA](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/shape-overview.md#ID4EYD) 部分。

## 要求

**头文件:** shapexmacontext.h

**支持的平台:** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

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


## Related topics

- [SetShapeXmaCurrentInputBuffer](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/setshapexmacurrentinputbuffer.md)
- [GetShapeXmaInputBufferReadOffset](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/getshapexmainputbufferreadoffset.md)
- [SetShapeXmaInputBufferReadOffset](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/setshapexmainputbufferreadoffset.md)
- [ShapeXmaContext](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [GetShapeXmaInputBufferValid](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/getshapexmainputbuffervalid.md)
