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

# LocalizeXma2Format

> LocalizeXma2Format

# LocalizeXma2Format

This modifies an `XMA2WAVEFORMATEX` structure in place in order to comply with the current platform's byte-ordering rules (little-endian or big-endian).

## Syntax

```cpp theme={null}
HRESULT LocalizeXma2Format(  
         XMA2WAVEFORMATEX* pXma2Format  
)  
```

### Parameters

*pXma2Format*   \_Inout\_\
Type: [XMA2WAVEFORMATEX\*](/reference/audio/xma2defs/structs/xma2waveformatex)

Pointer to the XMA2WAVEFORMATEX structure to be updated.

### Return value

Type: HRESULT

Success `S_OK` or error `E_FAIL` code.

## Remarks

This is an inline function that modifies an `XMA2WAVEFORMATEX` structure in place  to comply with the current platform's byte-ordering rules (little-endian or big-endian). 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)
- [XMA2 encoder tool](/build/console-features/audio/tools/xma2encodertool.md)
- [Overview of XMA2](/build/console-features/audio/overviews/xma2-overview.md)
- [XMA2 Encoder reference information](/build/console-features/audio/tools/xma2encoder/atoc-xmaencoder.md)
- [The audio architecture in XBOX One](/build/console-features/audio/overviews/xbox-one-audio-architecture.md)
