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

就地修改 `XMA2WAVEFORMATEX` 結構，使其符合目前平台的位元組順序規則 (little-endian 或 big-endian)。

## 語法

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

### 參數

*pXma2Format*   \_Inout\_\
類型：[XMA2WAVEFORMATEX\*](/zh-TW/reference/audio/xma2defs/structs/xma2waveformatex)

指向要更新之 XMA2WAVEFORMATEX 結構的指標。

### 傳回值

類型：HRESULT

成功時為 `S_OK`，錯誤時為 `E_FAIL` 代碼。

## 備註

這是一個內嵌函式，會就地修改 `XMA2WAVEFORMATEX` 結構，使其符合目前平台的位元組順序規則 (little-endian 或 big-endian)。如需 XMA2 的詳細資訊，請參閱 [XMA2 概觀](/zh-TW/build/console-features/audio/overviews/xma2-overview)。如需 XBOX One 音訊架構的概觀，請參閱**未來之聲**：[XBOX One 的音訊架構](/zh-TW/build/console-features/audio/overviews/xbox-one-audio-architecture)。

## 需求

**標頭：** xma2defs.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[xma2defs](/zh-TW/reference/audio/xma2defs/xma2defs_members)


## Related topics

- [LocalizeXma2Format](/reference/audio/xma2defs/functions/localizexma2format.md)
- [XMA2Defs](/reference/audio/xma2defs/xma2defs_members.md)
