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

Se usa en XMA2WAVEFORMAT para los datos de cada secuencia.

## Sintaxis

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

### Miembros

*Channels*\
Tipo: BYTE

Número de canales (1 o 2) de la secuencia.

*RESERVED*\
Tipo: BYTE

Reservado.

*ChannelMask*\
Tipo: WORD

Posiciones espaciales de los canales de la secuencia.

El bit menos significativo corresponde al altavoz delantero izquierdo, el siguiente bit menos significativo corresponde al altavoz delantero derecho, y así sucesivamente. Los bits, en orden de importancia, se definen de la manera siguiente.

| Posición del altavoz              | Bit de marca                                                                                       |
| --------------------------------- | -------------------------------------------------------------------------------------------------- |
| 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 (se usa para especificar cualquier permutación posible de configuraciones de altavoces) |

Se definen las configuraciones de altavoces siguientes.

| Configuración de altavoces          | Bits de marca establecidos                                                                                                                                                                                                         |
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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)                           |

Se definen las posiciones de altavoces de DVD siguientes.

| Posición del altavoz                    | Bit de marca            |
| --------------------------------------- | ----------------------- |
| 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 |

## Comentarios

Esta estructura se usa en `XMA2WAVEFORMAT` para los datos de cada secuencia. Como se muestra en el ejemplo de código siguiente, `Channels` hace referencia al número de canales de la secuencia. `ChannelMask` es para las posiciones espaciales de los canales de la secuencia.

```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;

```

Para obtener más información sobre XMA2, consulte [Información general de XMA2](/build/console-features/audio/overviews/xma2-overview). Para obtener información general de la arquitectura de audio de XBOX One, consulte **El sonido del futuro**: [La arquitectura de audio en XBOX One](/build/console-features/audio/overviews/xbox-one-audio-architecture).

## Requisitos

**Encabezado:** xma2defs.h

**Plataformas compatibles:** consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[xma2defs](/reference/audio/xma2defs/xma2defs_members)


## Related topics

- [XMA2Defs](/es/reference/audio/xma2defs/xma2defs_members.md)
- [XMA2WAVEFORMAT](/es/reference/audio/xma2defs/structs/xma2waveformat.md)
- [XMA2WAVEFORMATEX](/es/reference/audio/xma2defs/structs/xma2waveformatex.md)
- [XMA2PACKET](/es/reference/audio/xma2defs/structs/xma2packet.md)
- [Información general de XMA2](/es/build/console-features/audio/overviews/xma2-overview.md)
