> ## 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_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)上用户的通信关系冲突。

## 语法

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

## 常量

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

## 备注

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

## 需求

**头文件:** GameChat2.h

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

## 另请参阅

[Game Chat 2 简介](https://docs.xbox.com/zh-CN/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)\
[GameChat2 members](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/gamechat2_members.md)


## Related topics

- [post_decode_audio_sink_stream::can_receive_audio_from_source_stream](https://docs.xbox.com/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 成员（API 内容）](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/gamechat2_members.md)
- [initialize](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
- [set_communication_relationship](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship.md)
- [game_chat_communication_relationship_adjuster](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/enums/game_chat_communication_relationship_adjuster.md)
