> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XMAWAVEFORMAT

> XMAWAVEFORMAT

Structure of the legacy XMA1 format.

## Syntax

```cpp theme={null}
typedef struct XMAWAVEFORMAT {  
    WORD FormatTag;  
    WORD BitsPerSample;  
    WORD EncodeOptions;  
    WORD LargestSkip;  
    WORD NumStreams;  
    BYTE LoopCount;  
    BYTE Version;  
    XMASTREAMFORMAT XmaStreams[1];  
} XMAWAVEFORMAT  
```

### Members

*FormatTag*\
Type: WORD

Audio format type. Always WAVE\_FORMAT\_XMA.

*BitsPerSample*\
Type: WORD

Bit depth. Currently, required to be 16.

*EncodeOptions*\
Type: WORD

Options for the XBOX Media Audio (XMA) encoder and decoder.

*LargestSkip*\
Type: WORD

Largest skip used in interleaving streams.

*NumStreams*\
Type: WORD

Number of interleaved audio streams.

*LoopCount*\
Type: BYTE

Number of loop repetitions; 255 = infinite.

*Version*\
Type: BYTE

The version of the XMA encoder that generated the file. For XMA2 files, the version is always 3 or later.

*XmaStreams*\
Type: [XMASTREAMFORMAT](https://docs.xbox.com/reference/audio/xma2defs/structs/xmastreamformat.md)\[1]

Per-stream format information; the actual array length is in the NumStreams field.

## Remarks

> [!NOTE]
>
> This is a legacy XMA1 format structure. The information provided should be used for reference only and not be used in new content.

`XMAWAVEFORMAT` was the structure used in XMA version 1 files.  `XMA2WAVEFORMAT` was used in early XMA2 files. It is not placed in the usual *fmt* RIFF chunk but in its own XMA2 chunk. For more information about XMA2, see [Overview of XMA2](https://docs.xbox.com/build/console-features/audio/overviews/xma2-overview.md). For an overview of the audio architecture of XBOX One, see *The sound of the future*: [The audio architecture in XBOX One](https://docs.xbox.com/build/console-features/audio/overviews/xbox-one-audio-architecture.md).

## Requirements

**Header:** xma2defs.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[xma2defs](https://docs.xbox.com/reference/audio/xma2defs/xma2defs_members.md)


## Related topics

- [XMA2Defs](https://docs.xbox.com/reference/audio/xma2defs/xma2defs_members.md)
- [XMASTREAMFORMAT](https://docs.xbox.com/reference/audio/xma2defs/structs/xmastreamformat.md)
- [XMA2WAVEFORMAT](https://docs.xbox.com/reference/audio/xma2defs/structs/xma2waveformat.md)
