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

Définit le nombre de canaux.

<a id="syntaxSection" />

## Syntaxe

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

<a id="parametersSection" />

### Paramètres

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

*numChannels*   \
Type : UINT32

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

<a id="retvalSection" />

### Valeur de retour

Type : HRESULT

Code de réussite ou d'erreur HRESULT.

<a id="remarksSection" />

## Remarques

Cette fonction définit 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 obtenir le nombre actuel de canaux, utilisez [GetShapeXmaNumChannels](/fr-CA/reference/audio/shapexmacontext/functions/getshapexmanumchannels).

Pour plus d'informations, consultez la section [XMA](/fr-CA/build/console-features/audio/overviews/shape-overview#ID4EYD) de [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

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