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

# XMAWAVEFORMAT

> 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](/reference/audio/xma2defs/structs/xmastreamformat)\[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.</Note>

`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](/build/console-features/audio/overviews/xma2-overview). For an overview of the audio architecture of XBOX One, see *The sound of the future*: [The audio architecture in XBOX One](/build/console-features/audio/overviews/xbox-one-audio-architecture).

## Requirements

**Header:** xma2defs.h

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

## See also

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


## Related topics

- [XMA2Defs](/reference/audio/xma2defs/xma2defs_members.md)
- [XMASTREAMFORMAT](/reference/audio/xma2defs/structs/xmastreamformat.md)
- [XMA2WAVEFORMAT](/reference/audio/xma2defs/structs/xma2waveformat.md)
