> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# process_incoming_data

> chat_manager::process_incoming_data

Delivers data to Game Chat 2 that was received from a remote instance of Game Chat 2.

## Syntax

```cpp theme={null}
void process_incoming_data(  
    uint64_t sourceEndpointIdentifier,  
    uint32_t bufferByteCount,  
    const void* buffer  
)  
```

### Parameters

*sourceEndpointIdentifier*   \_In\_\
Type: uint64\_t

The identifier associated with an endpoint that was advertised to Game Chat 2 with a previous call to [chat\_manager::add\_remote\_user](https://docs.xbox.com/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user.md).

*bufferByteCount*   \_In\_\
Type: uint32\_t

The size of the data buffer, in bytes.

*buffer*   \_In\_reads\_(bufferByteCount)\
Type: void\*

The data buffer.

### Return value

Type: void

None.

## Remarks

When the app's transport layer receives data that originated from a remote instance of Game Chat 2, call this method to deliver the data to the local instance of Game Chat 2. Game Chat 2 then decodes the incoming data and renders it to the local user's device. For more information about processing data frames, see [Using the Game Chat 2 C++ API](https://docs.xbox.com/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md).

## Requirements

**Header:** GameChat2.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[Intro to Game Chat 2](https://docs.xbox.com/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)\
[game\_chat\_data\_frame](https://docs.xbox.com/reference/chat/gamechat2/structs/game_chat_data_frame.md)\
[chat\_manager](https://docs.xbox.com/reference/chat/gamechat2/classes/chat_manager/chat_manager.md)


## Related topics

- [add_remote_user](https://docs.xbox.com/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user.md)
- [Intro to Game Chat 2](https://docs.xbox.com/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)
- [Overview of event-based Achievements](https://docs.xbox.com/services/xbox-services/player-data/achievements/event-based/live-achievements-eb-overview.md)
- [Using real-time audio manipulation to apply custom voice effects](https://docs.xbox.com/services/playfab/community/voice-communications/concepts-realtime-audio-manipulation.md)
- [Overview of SHAPE](https://docs.xbox.com/build/console-features/audio/overviews/shape-overview.md)
