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

# GetShapeXmaNumChannels

> GetShapeXmaNumChannels

# GetShapeXmaNumChannels

Obtém o número de canais.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
UINT32 GetShapeXmaNumChannels(  
         const SHAPE_XMA_CONTEXT* context  
)  
```

<a id="parametersSection" />

### Parâmetros

*context*   \_In\_\
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).

<a id="retvalSection" />

### Valor de retorno

Tipo: UINT32

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

<a id="remarksSection" />

## Comentários

Esta função retorna 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 definir o número de canais, use [SetShapeXmaNumChannels](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmanumchannels).

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 com suporte:** 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

- [SetShapeXmaNumChannels](/pt-BR/reference/audio/shapexmacontext/functions/setshapexmanumchannels.md)
- [ShapeXmaContext](/pt-BR/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [GetShapeDmaNumChannels](/pt-BR/reference/audio/shapedmacontext/functions/getshapedmanumchannels.md)
- [GetShapeXmaNumLoops](/pt-BR/reference/audio/shapexmacontext/functions/getshapexmanumloops.md)
- [GetShapeXmaNumSubframesToDecode](/pt-BR/reference/audio/shapexmacontext/functions/getshapexmanumsubframestodecode.md)
