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

# chat_manager::start_processing_data_frames

> chat_manager::start_processing_data_frames

# chat\_manager::start\_processing\_data\_frames

擷取 Game Chat 2 排入佇列的所有資料框架，以便由應用程式的傳輸層傳遞至適當的遠端應用程式執行個體。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
void start_processing_data_frames(  
    uint32_t* dataFrameCount,  
    game_chat_data_frame_array* dataFrames  
)  
```

<a id="parametersSection" />

### 參數

*dataFrameCount*   \_Out\_\
類型：uint32\_t\*

*dataFrames* 中已排入佇列的資料框架總數。

*dataFrames*   \_Outptr\_result\_buffer\_(\*dataFrameCount)\
類型：[game\_chat\_data\_frame\_array](/zh-TW/reference/chat/gamechat2/structs/game_chat_data_frame#array)\*

[game\_chat\_data\_frame](/zh-TW/reference/chat/gamechat2/structs/game_chat_data_frame) 結構指標的陣列，代表要由應用程式的傳輸層傳遞至適當遠端應用程式執行個體的已排入佇列資料框架。

<a id="retvalSection" />

### 傳回值

類型：void

無。

<a id="remarksSection" />

## 備註

此方法會擷取 Game Chat 2 排入佇列的所有資料框架，以供應用程式處理。Game Chat 2 沒有自己的傳輸層，因此應用程式必須提供一個傳輸層。呼叫此方法會以 `game_chat_data_frame` 結構指標陣列的形式，擷取需要由應用程式傳輸層處理的資料框架。應用程式會逐一查看陣列、檢查資料框架的端點識別碼，並使用應用程式的網路層，將該資料框架的資料傳遞至適當的遠端應用程式執行個體。

處理完 `dataFrames` 中包含的所有資料框架之後，應用程式接著會呼叫 [chat\_manager::finish\_processing\_data\_frames](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_finish_processing_data_frames)，將已處理的資料框架傳回給 Game Chat 2，以指出可以釋放與已處理資料框架相關聯的資源。如需處理資料框架的詳細資訊，請參閱[使用 Game Chat 2 C++ API](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2)。

較不頻繁地呼叫此方法會造成音訊延遲，但可讓 Game Chat 2 將資料合併成大型資料框架。較頻繁地呼叫此方法可減少音訊延遲，但會產生更多、更小的資料框架。音訊會合併成 40 毫秒 (ms) 的資料框架；這是建議的輪詢週期。

<a id="requirementsSection" />

## 需求

**標頭：** GameChat2.h

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

<a id="seealsoSection" />

## 另請參閱

[Game Chat 2 簡介](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[chat\_manager](/zh-TW/reference/chat/gamechat2/classes/chat_manager/chat_manager)


## Related topics

- [chat_manager::finish_processing_data_frames](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_finish_processing_data_frames.md)
- [game_chat_data_frame](/zh-TW/reference/chat/gamechat2/structs/game_chat_data_frame.md)
- [使用 Game Chat 2 C++ API](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [chat_manager::start_processing_state_changes](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_state_changes.md)
- [chat_manager::start_processing_stream_state_changes](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_stream_state_changes.md)
