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

# SetShapeXmaInputBuffer1(SHAPE_XMA_CONTEXT*, APU_ADDRESS)

> SetShapeXmaInputBuffer1(SHAPE_XMA_CONTEXT*, APU_ADDRESS)

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

设置右输入缓冲区的地址。

<a id="syntaxSection" />

## 语法

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

<a id="parametersSection" />

### 参数

*context*   \_Inout\_\
Type: [SHAPE\_XMA\_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context)\*

指向 [SHAPE\_XMA\_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context) 对象的指针。

*buffer*   \_In\_\
Type: APU\_ADDRESS

右输入缓冲区的物理地址。

<a id="retvalSection" />

### 返回值

Type: HRESULT

HRESULT 成功或错误代码。

<a id="remarksSection" />

## 备注

若要设置左输入缓冲区的地址,请使用 [SetShapeXmaInputBuffer0(SHAPE\_XMA\_CONTEXT\*, const void\*)](/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0) 或 [SetShapeXmaInputBuffer0(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0_2)。

若要获取右输入缓冲区的地址,请使用 [GetShapeXmaInputBuffer1](/reference/audio/shapexmacontext/functions/getshapexmainputbuffer1)。

有关详细信息,请参阅 [Overview of SHAPE](/build/console-features/audio/overviews/shape-overview) 的 [XMA](/build/console-features/audio/overviews/shape-overview#ID4EYD) 部分。

<a id="requirementsSection" />

## 要求

**头文件:** shapexmacontext.h

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

<a id="seealsoSection" />

## 另请参阅

[ShapeXmaContext](/reference/audio/shapexmacontext/shapexmacontext_members)


## Related topics

- [SetShapeXmaInputBuffer0(SHAPE_XMA_CONTEXT*, APU_ADDRESS)](/zh-CN/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0_2.md)
- [GetShapeXmaInputBuffer1](/zh-CN/reference/audio/shapexmacontext/functions/getshapexmainputbuffer1.md)
- [SetShapeXmaCurrentInputBuffer](/zh-CN/reference/audio/shapexmacontext/functions/setshapexmacurrentinputbuffer.md)
- [SetShapeXmaInputBuffer0(SHAPE_XMA_CONTEXT*, const void*)](/zh-CN/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0.md)
- [ShapeXmaContext](/zh-CN/reference/audio/shapexmacontext/shapexmacontext_members.md)
