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

# SetShapeXmaNumChannels

> SetShapeXmaNumChannels

# SetShapeXmaNumChannels

Define o número de canais.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
HRESULT SetShapeXmaNumChannels(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 numChannels  
)  
```

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

*numChannels*   \
Tipo: UINT32

Número de canais: 1 (mono) ou 2 (estéreo).

<a id="retvalSection" />

### Valor retornado

Tipo: HRESULT

Código de êxito ou de erro HRESULT.

<a id="remarksSection" />

## Comentários

Essa função define o número real de canais no contexto. (No objeto [SHAPE\_XMA\_CONTEXT](/pt-BR/reference/audio/shapexmacontext/structs/shape_xma_context), o membro `numChannels` contém os valores 0 \[mono] ou 1 \[estéreo].)

Para obter o número atual de canais, use [GetShapeXmaNumChannels](/pt-BR/reference/audio/shapexmacontext/functions/getshapexmanumchannels).

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

- [GetShapeXmaNumChannels](/pt-BR/reference/audio/shapexmacontext/functions/getshapexmanumchannels.md)
- [ShapeXmaContext](/pt-BR/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeDmaNumChannels](/pt-BR/reference/audio/shapedmacontext/functions/setshapedmanumchannels.md)
- [SetShapeXmaNumLoops](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmanumloops.md)
- [SetShapeXmaNumSubframesToDecode](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmanumsubframestodecode.md)
