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

# SetShapeXmaCurrentInputBuffer

> SetShapeXmaCurrentInputBuffer

# SetShapeXmaCurrentInputBuffer

Define o buffer de entrada atual.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
HRESULT SetShapeXmaCurrentInputBuffer(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 currentBuffer  
)  
```

<a id="parametersSection" />

### Parâmetros

*context*   \_Inout\_\
Tipo: [SHAPE\_XMA\_CONTEXT](/pt-BR/reference/audio/shapexmacontext/structs/shape_xma_context)\*

Ponteiro para um objeto [SHAPE\_XMA\_CONTEXT](/pt-BR/reference/audio/shapexmacontext/structs/shape_xma_context).

*currentBuffer*   \
Tipo: UINT32

O buffer de entrada atual. 0 especifica o buffer esquerdo e 1 especifica o buffer direito.

<a id="retvalSection" />

### Valor retornado

Tipo: HRESULT

Código de êxito ou de erro HRESULT.

<a id="remarksSection" />

## Comentários

Para definir o endereço do buffer de entrada esquerdo, use [SetShapeXmaInputBuffer0(SHAPE\_XMA\_CONTEXT\*, const void\*)](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0) ou [SetShapeXmaInputBuffer0(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0_2). Para definir o endereço do buffer de entrada direito, use [SetShapeXmaInputBuffer1(SHAPE\_XMA\_CONTEXT\*, const void\*)](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1) ou [SetShapeXmaInputBuffer1(SHAPE\_XMA\_CONTEXT\*, APU\_ADDRESS)](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmainputbuffer1_2).

Para obter o buffer de entrada atual, use [GetShapeXmaCurrentInputBuffer](/pt-BR/reference/audio/shapexmacontext/functions/getshapexmacurrentinputbuffer).

Para obter mais informações, consulte a seção [XMA](/pt-BR/build/console-features/audio/overviews/shape-overview#ID4EYD) de [Visão geral do SHAPE](/pt-BR/build/console-features/audio/overviews/shape-overview).

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** shapexmacontext.h

**Plataformas compatíveis:** consoles da família XBOX One e consoles XBOX Series

<a id="seealsoSection" />

## Confira também

[ShapeXmaContext](/pt-BR/reference/audio/shapexmacontext/shapexmacontext_members)


## Related topics

- [GetShapeXmaCurrentInputBuffer](/pt-BR/reference/audio/shapexmacontext/functions/getshapexmacurrentinputbuffer.md)
- [ShapeXmaContext](/pt-BR/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaInputBufferReadOffset](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmainputbufferreadoffset.md)
- [GetShapeXmaInputBufferReadOffset](/pt-BR/reference/audio/shapexmacontext/functions/getshapexmainputbufferreadoffset.md)
- [SetShapeXmaInputBufferValid](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmainputbuffervalid.md)
