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

# SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, APU_ADDRESS)

> SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, APU_ADDRESS)

# SetShapeXmaOutputBuffer(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)

設定輸出緩衝區的位址。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT SetShapeXmaOutputBuffer(  
         SHAPE_XMA_CONTEXT* context,  
         APU_ADDRESS buffer  
)  
```

<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) 物件的指標。

*buffer*   \_In\_\
類型: APU\_ADDRESS

輸出緩衝區的實體位址。

<a id="retvalSection" />

### 傳回值

類型: HRESULT

HRESULT 成功或錯誤碼。

<a id="remarksSection" />

## 備註

若要使用指標設定輸出緩衝區的位址，請使用 [SetShapeXmaOutputBuffer(SHAPE\_XMA\_CONTEXT\*, void\*)](/zh-TW/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer)。

若要取得輸出緩衝區的位址，請使用 [GetShapeXmaOutputBuffer](/zh-TW/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffer)。

如需詳細資訊，請參閱 [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

- [SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, APU_ADDRESS)](/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer_2.md)
- [SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, void*)](/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer.md)
- [GetShapeXmaOutputBuffer](/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffer.md)
- [ShapeXmaContext](/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaOverlapAddBuffer(SHAPE_XMA_CONTEXT*, APU_ADDRESS)](/reference/audio/shapexmacontext/functions/setshapexmaoverlapaddbuffer_2.md)
