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

# SetShapeXmaInputBuffer0Size

> SetShapeXmaInputBuffer0Size

# SetShapeXmaInputBuffer0Size

設定左側輸入緩衝區的大小。

<a id="syntaxSection" />

## 語法

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

<a id="parametersSection" />

### 參數

*context*   \_Inout\_\
類型：[SHAPE\_XMA\_CONTEXT](/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context)\*

指向 [SHAPE\_XMA\_CONTEXT](/zh-TW/reference/audio/shapexmacontext/structs/shape_xma_context) 物件的指標。

*size*   \
類型：UINT32

左側輸入緩衝區的大小。必須是 2048 位元組的倍數，且不得大於 `SHAPE_XMA_MAX_INPUT_BUFFER_SIZE`。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

<a id="remarksSection" />

## 備註

若要設定右側輸入緩衝區的大小，請使用 [SetShapeXmaInputBuffer1Size](/zh-TW/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1size)。

若要取得左側輸入緩衝區的大小，請使用 [GetShapeXmaInputBuffer0Size](/zh-TW/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0size)。

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

<a id="requirementsSection" />

## 需求

**標頭：** shapexmacontext.h

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

<a id="seealsoSection" />

## 另請參閱

[ShapeXmaContext](/zh-TW/reference/audio/shapexmacontext/shapexmacontext_members)


## Related topics

- [SetShapeXmaInputBuffer0Size](/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0size.md)
- [GetShapeXmaInputBuffer0Size](/reference/audio/shapexmacontext/functions/getshapexmainputbuffer0size.md)
- [SetShapeXmaInputBuffer1Size](/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1size.md)
- [SetShapeXmaOutputBufferSize](/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffersize.md)
