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

# GetXmaPacketFirstFrameOffsetInBits

> GetXmaPacketFirstFrameOffsetInBits

# GetXmaPacketFirstFrameOffsetInBits

這是 `XMA2PACKET` 結構的協助程式函式，會傳回第一個框架的位移。

## 語法

```cpp theme={null}
DWORD GetXmaPacketFirstFrameOffsetInBits(  
         const BYTE* pPacket  
)  
```

### 參數

*pPacket*   \_In\_bytecount\_(3)\
類型：BYTE\*

指向封包的指標。

### 傳回值

類型：DWORD

第一個框架的位移 (以位元為單位)。

## 備註

`GetXmaPacketFirstFrameOffsetInBits` 會取得 XBOX Media Audio (XMA) 封包第一個框架的位元位移。

<Note>在 little-endian 架構 (例如 Intel x86) 上無法直接讀取位元欄位，因為它們是以 big-endian 格式配置。</Note>

如需 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

- [GetXmaPacketFirstFrameOffsetInBits](/reference/audio/xma2defs/functions/getxmapacketfirstframeoffsetinbits.md)
- [XMA2Defs](/reference/audio/xma2defs/xma2defs_members.md)
