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

# GetLastXmaFrameBitPosition

> GetLastXmaFrameBitPosition

# GetLastXmaFrameBitPosition

計算 XBOX Media Audio (XMA) 區塊或一組區塊中最後一個完整框架的位元位移。

## 語法

```cpp theme={null}
DWORD GetLastXmaFrameBitPosition(  
         const BYTE* pXmaData,  
         DWORD nXmaDataBytes,  
         DWORD nStreamIndex  
)  
```

### 參數

*pXmaData*   \_In\_bytecount\_(nXmaDataBytes)\
類型:BYTE\*

XMA 區塊的指標。

*nXmaDataBytes*   \
類型:DWORD

pXmaData 的大小 (以位元組為單位)。

*nStreamIndex*   \
類型:DWORD

要在其中搜尋的串流。

### 傳回值

類型:DWORD

位元位移。

## 備註

此函式會計算 XMA 區塊或一組區塊中最後一個完整框架的位元位移。如需 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

- [GetLastXmaFrameBitPosition](/reference/audio/xma2defs/functions/getlastxmaframebitposition.md)
- [XMA2Defs](/reference/audio/xma2defs/xma2defs_members.md)
