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

# game_chat_thread_id

> game_chat_thread_id

# game\_chat\_thread\_id

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

<a id="syntaxSection" />

## Syntax

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

<a id="constantsSection" />

## Constants

| Constant   | Description                                                                                                                                                                                                                                      |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| audio      | Represents Game Chat 2 internal audio threads.<br /><br /> 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.<br /><br /> Game Chat 2 internal networking threads are driven by polling mechanisms. These wake every 50 to 100 milliseconds.                                                               |

<a id="remarksSection" />

## Remarks

This enumeration is used by [chat\_manager::get\_thread\_processor](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_get_thread_processor) and [chat\_manager::set\_thread\_processor](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_set_thread_processor) 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`.

<a id="requirementsSection" />

## Requirements

**Header:** GameChat2.h

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

<a id="seealsoSection" />

## See also

[Intro to Game Chat 2](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[GameChat2 members](/reference/chat/gamechat2/gamechat2_members)


## Related topics

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