> ## 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\_\
類型：[SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context.md)\*

指向 [SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context.md) 物件的指標。

### 傳回值

類型：UINT32

目前的輸入緩衝區。0 表示左緩衝區，1 表示右緩衝區。

## 備註

若要取得指向左輸入緩衝區的指標，請使用 [GetShapeXmaInputBuffer0](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0.md)。若要取得指向右輸入緩衝區的指標，請使用 [GetShapeXmaInputBuffer1](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffer1.md)。

若要設定目前的輸入緩衝區，請使用 [SetShapeXmaCurrentInputBuffer](https://docs.xbox.com/zh-TW/reference/audio/shapexmacontext/functions/setshapexmacurrentinputbuffer.md)。

如需詳細資訊，請參閱 [SHAPE 概觀](https://docs.xbox.com/zh-TW/build/console-features/audio/overviews/shape-overview.md)的 [XMA](https://docs.xbox.com/zh-TW/build/console-features/audio/overviews/shape-overview.md#ID4EYD) 一節。

## 需求

**標頭：** shapexmacontext.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

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


## Related topics

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