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

> game_chat_shared_device_communication_relationship_resolution_mode

# game\_chat\_shared\_device\_communication\_relationship\_resolution\_mode

定义 Game Chat 2 应如何解决共享设备(例如 Kinect)上用户的通信关系冲突。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
enum class game_chat_shared_device_communication_relationship_resolution_mode  
{  
    permissive,  
    restrictive  
}  
```

<a id="constantsSection" />

## 常量

| 常量          | 描述                                                                                              |
| ----------- | ----------------------------------------------------------------------------------------------- |
| permissive  | 在确定是否应将共享设备上的音频发送给远程用户或渲染给本地用户时,Game Chat 2 应选择最宽松的关系。<br /><br />此选择等同于对共享设备上用户的通信关系标志执行按位或运算。 |
| restrictive | 在确定是否应将共享设备上的音频发送给远程用户或渲染给本地用户时,Game Chat 2 应选择最严格的关系。                                          |

<a id="remarksSection" />

## 备注

[chat\_manager::initialize](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize) 方法使用此枚举来指示 Game Chat 2 应如何解决共享同一音频设备(例如 Kinect)的用户的通信关系冲突。您可以调用 [chat\_user\_local::set\_communication\_relationship](/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship) 来设置本地用户与目标用户之间的通信关系,在确定是否应将共享设备上的音频发送给远程用户或渲染给本地用户时会对这些关系进行比较。您也可以调用 [chat\_user\_local::get\_effective\_communication\_relationship](/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_get_effective_communication_relationship) 来获取 Game Chat 2 在本地用户与目标用户之间实施的最终有效通信关系。有关通信关系的更多信息,请参阅 [使用 Game Chat 2 C++ API](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2)。

<a id="requirementsSection" />

## 需求

**头文件:** GameChat2.h

**支持的平台:** Windows、XBOX One 家族主机以及 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

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


## Related topics

- [post_decode_audio_sink_stream::can_receive_audio_from_source_stream](/zh-CN/reference/chat/gamechat2/classes/post_decode_audio_sink_stream/methods/post_decode_audio_sink_stream_can_receive_audio_from_source_stream.md)
- [GameChat2 members](/zh-CN/reference/chat/gamechat2/gamechat2_members.md)
- [chat_manager::initialize](/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
- [game_chat_communication_relationship_adjuster](/zh-CN/reference/chat/gamechat2/enums/game_chat_communication_relationship_adjuster.md)
- [game_chat_communication_relationship_flags](/zh-CN/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)
