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

Obtient le nombre de canaux.

<a id="syntaxSection" />

## Syntaxe

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

<a id="parametersSection" />

### Paramètres

*context*   \_In\_\
Type : [SHAPE\_XMA\_CONTEXT](/fr-CA/reference/audio/shapexmacontext/structs/shape_xma_context)\*

Pointeur vers un objet [SHAPE\_XMA\_CONTEXT](/fr-CA/reference/audio/shapexmacontext/structs/shape_xma_context).

<a id="retvalSection" />

### Valeur de retour

Type : UINT32

Nombre de canaux : 1 (mono) ou 2 (stéréo).

<a id="remarksSection" />

## Remarques

Cette fonction retourne le nombre réel de canaux dans le contexte. (Dans l'objet [SHAPE\_XMA\_CONTEXT](/fr-CA/reference/audio/shapexmacontext/structs/shape_xma_context), le membre `numChannels` contient les valeurs 0 \[mono] ou 1 \[stéréo].)

Pour définir le nombre de canaux, utilisez [SetShapeXmaNumChannels](/fr-CA/reference/audio/shapexmacontext/functions/setshapexmanumchannels).

Pour plus d'informations, consultez la section [XMA](/fr-CA/build/console-features/audio/overviews/shape-overview#ID4EYD) de la [Vue d'ensemble de SHAPE](/fr-CA/build/console-features/audio/overviews/shape-overview).

<a id="requirementsSection" />

## Configuration requise

**En-tête :** shapexmacontext.h

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

<a id="seealsoSection" />

## Voir aussi

[ShapeXmaContext](/fr-CA/reference/audio/shapexmacontext/shapexmacontext_members)


## Related topics

- [GetShapeXmaNumChannels](/reference/audio/shapexmacontext/functions/getshapexmanumchannels.md)
- [SetShapeXmaNumChannels](/reference/audio/shapexmacontext/functions/setshapexmanumchannels.md)
- [ShapeXmaContext](/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [GetShapeDmaNumChannels](/reference/audio/shapedmacontext/functions/getshapedmanumchannels.md)
