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

# game_chat_thread_id

> game_chat_thread_id

Defines the types of threads that Game Chat 2 uses for internal purposes.

## Syntax

```cpp theme={null}
enum class game_chat_thread_id  
{  
    audio,  
    networking,  
}  
```

## Constants

| Constant | Description |
| - | - |
| audio | Represents Game Chat 2 internal audio threads.  Game Chat internal audio threads are high priority, frequently-running threads with real-time requirements. These threads interact directly with XAudio2 every 20 to 40 milliseconds. |
| networking | Represents Game Chat 2 internal networking threads.  Game Chat 2 internal networking threads are driven by polling mechanisms. These wake every 50 to 100 milliseconds. |

## Remarks

This enumeration is used by [chat\_manager::get\_thread\_processor](https://docs.xbox.com/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_get_thread_processor.md) and [chat\_manager::set\_thread\_processor](https://docs.xbox.com/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_set_thread_processor.md) to identify the Game Chat 2 internal thread type for which processor affinity is configured.

When calling `chat_manager::set_thread_processor` to configure the processor affinity for Game Chat 2 internal audio threads, XAudio2 instances for Game Chat 2 are initialized with a processor affinity that corresponds to the configured processor number. If no processor number is specified for this thread type, XAudio2 instances for Game Chat 2 are initialized with the processor affinity set to `XAUDIO2_DEFAULT_PROCESSOR`.

## 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)\
[GameChat2 members](https://docs.xbox.com/reference/chat/gamechat2/gamechat2_members.md)


## Related topics

- [get_thread_processor](https://docs.xbox.com/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_get_thread_processor.md)
- [set_thread_processor](https://docs.xbox.com/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_set_thread_processor.md)
- [set_thread_affinity_mask](https://docs.xbox.com/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_set_thread_affinity_mask.md)
- [get_thread_affinity_mask](https://docs.xbox.com/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_get_thread_affinity_mask.md)
- [GameChat2 members (API contents)](https://docs.xbox.com/reference/chat/gamechat2/gamechat2_members.md)
