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

# XMA2STREAMFORMAT

> XMA2STREAMFORMAT

# XMA2STREAMFORMAT

Utilisée dans XMA2WAVEFORMAT pour les données par flux.

## Syntaxe

```cpp theme={null}
typedef struct XMA2STREAMFORMAT {  
    BYTE Channels;  
    BYTE RESERVED;  
    WORD ChannelMask;  
} XMA2STREAMFORMAT  
```

### Membres

*Channels*\
Type : BYTE

Nombre de canaux (1 ou 2) dans le flux.

*RESERVED*\
Type : BYTE

Réservé.

*ChannelMask*\
Type : WORD

Positions spatiales des canaux dans le flux.

Le bit le moins significatif correspond au haut-parleur avant gauche, le bit suivant correspond au haut-parleur avant droit, et ainsi de suite. Les bits, par ordre d'importance, sont définis comme suit.

| Position du haut-parleur | Bit d'indicateur |
| - | - |
| SPEAKER\_FRONT\_LEFT | 0x1 |
| SPEAKER\_FRONT\_RIGHT | 0x2 |
| SPEAKER\_FRONT\_CENTER | 0x4 |
| SPEAKER\_LOW\_FREQUENCY | 0x8 |
| SPEAKER\_BACK\_LEFT | 0x10 |
| SPEAKER\_BACK\_RIGHT | 0x20 |
| SPEAKER\_FRONT\_LEFT\_OF\_CENTER | 0x40 |
| SPEAKER\_FRONT\_RIGHT\_OF\_CENTER | 0x80 |
| SPEAKER\_BACK\_CENTER | 0x100 |
| SPEAKER\_SIDE\_LEFT | 0x200 |
| SPEAKER\_SIDE\_RIGHT | 0x400 |
| SPEAKER\_TOP\_CENTER | 0x800 |
| SPEAKER\_TOP\_FRONT\_LEFT | 0x1000 |
| SPEAKER\_TOP\_FRONT\_CENTER | 0x2000 |
| SPEAKER\_TOP\_FRONT\_RIGHT | 0x4000 |
| SPEAKER\_TOP\_BACK\_LEFT | 0x8000 |
| SPEAKER\_TOP\_BACK\_CENTER | 0x10000 |
| SPEAKER\_TOP\_BACK\_RIGHT | 0x20000 |
| SPEAKER\_ALL | 0x80000000 (utilisé pour spécifier toute permutation possible des configurations de haut-parleurs) |

Les configurations de haut-parleurs suivantes sont définies.

| Configuration des haut-parleurs | Bits d'indicateur définis |
| - | - |
| KSAUDIO\_SPEAKER\_MONO | (SPEAKER\_FRONT\_CENTER) |
| KSAUDIO\_SPEAKER\_STEREO | (SPEAKER\_FRONT\_LEFT \| SPEAKER\_FRONT\_RIGHT) |
| KSAUDIO\_SPEAKER\_QUAD | (SPEAKER\_FRONT\_LEFT \| SPEAKER\_FRONT\_RIGHT \| \ SPEAKER\_BACK\_LEFT \| SPEAKER\_BACK\_RIGHT) |
| KSAUDIO\_SPEAKER\_SURROUND | (SPEAKER\_FRONT\_LEFT \| SPEAKER\_FRONT\_RIGHT \| \ SPEAKER\_FRONT\_CENTER \| SPEAKER\_BACK\_CENTER) |
| KSAUDIO\_SPEAKER\_5POINT1 | (SPEAKER\_FRONT\_LEFT \| SPEAKER\_FRONT\_RIGHT \| \ SPEAKER\_FRONT\_CENTER \| SPEAKER\_LOW\_FREQUENCY \| \ SPEAKER\_BACK\_LEFT \| SPEAKER\_BACK\_RIGHT) |
| KSAUDIO\_SPEAKER\_7POINT1 | (SPEAKER\_FRONT\_LEFT \| SPEAKER\_FRONT\_RIGHT \| \ SPEAKER\_FRONT\_CENTER \| SPEAKER\_LOW\_FREQUENCY \| \ SPEAKER\_BACK\_LEFT \| SPEAKER\_BACK\_RIGHT \| \ SPEAKER\_FRONT\_LEFT\_OF\_CENTER \| SPEAKER\_FRONT\_RIGHT\_OF\_CENTER) |
| KSAUDIO\_SPEAKER\_5POINT1\_SURROUND | (SPEAKER\_FRONT\_LEFT \| SPEAKER\_FRONT\_RIGHT \| \ SPEAKER\_FRONT\_CENTER \| SPEAKER\_LOW\_FREQUENCY \| \ SPEAKER\_SIDE\_LEFT \| SPEAKER\_SIDE\_RIGHT) |
| KSAUDIO\_SPEAKER\_7POINT1\_SURROUND | (SPEAKER\_FRONT\_LEFT \| SPEAKER\_FRONT\_RIGHT \| \ SPEAKER\_FRONT\_CENTER \| SPEAKER\_LOW\_FREQUENCY \| \ SPEAKER\_BACK\_LEFT \| SPEAKER\_BACK\_RIGHT \| \ SPEAKER\_SIDE\_LEFT \| SPEAKER\_SIDE\_RIGHT) |

Les positions de haut-parleurs DVD suivantes sont définies.

| Position du haut-parleur | Bit d'indicateur |
| - | - |
| KSAUDIO\_SPEAKER\_GROUND\_FRONT\_LEFT | SPEAKER\_FRONT\_LEFT |
| KSAUDIO\_SPEAKER\_GROUND\_FRONT\_CENTER | SPEAKER\_FRONT\_CENTER |
| KSAUDIO\_SPEAKER\_GROUND\_FRONT\_RIGHT | SPEAKER\_FRONT\_RIGHT |
| KSAUDIO\_SPEAKER\_GROUND\_REAR\_LEFT | SPEAKER\_BACK\_LEFT |
| KSAUDIO\_SPEAKER\_GROUND\_REAR\_RIGHT | SPEAKER\_BACK\_RIGHT |
| KSAUDIO\_SPEAKER\_TOP\_MIDDLE | SPEAKER\_TOP\_CENTER |
| KSAUDIO\_SPEAKER\_SUPER\_WOOFER | SPEAKER\_LOW\_FREQUENCY |

## Remarques

Cette structure est utilisée dans `XMA2WAVEFORMAT` pour les données par flux. Comme le montre l'exemple de code ci-dessous, `Channels` désigne le nombre de canaux dans le flux. `ChannelMask` correspond aux positions spatiales des canaux dans le flux.

```cpp theme={null}
typedef struct XMA2STREAMFORMAT
{
    BYTE Channels;           // Number of channels in the stream (1 or 2)
    BYTE RESERVED;           // Reserved for future use
    WORD ChannelMask;        // Spatial positions of the channels in the stream
} XMA2STREAMFORMAT;

```

Pour plus d'informations sur XMA2, consultez [Vue d'ensemble de XMA2](/fr-CA/build/console-features/audio/overviews/xma2-overview). Pour une vue d'ensemble de l'architecture audio de la XBOX One, consultez **Le son du futur** : [L'architecture audio de la XBOX One](/fr-CA/build/console-features/audio/overviews/xbox-one-audio-architecture).

## Configuration requise

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

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

## Voir aussi

[xma2defs](/fr-CA/reference/audio/xma2defs/xma2defs_members)


## Related topics

- [XMA2STREAMFORMAT](/reference/audio/xma2defs/structs/xma2streamformat.md)
- [XMA2Defs](/reference/audio/xma2defs/xma2defs_members.md)
- [XMA2WAVEFORMAT](/reference/audio/xma2defs/structs/xma2waveformat.md)
- [XMA2WAVEFORMATEX](/reference/audio/xma2defs/structs/xma2waveformatex.md)
