> ## 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 />此選擇相當於對共用裝置上使用者之通訊關係的關係旗標套用位元 OR 運算。 |
| restrictive | 在判斷是否應將來自共用裝置的音訊傳送給遠端使用者或為本機使用者轉譯時，Game Chat 2 應選擇最嚴格的關係。 |

<a id="remarksSection" />

## 備註

[chat\_manager::initialize](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize) 方法使用此列舉，指出 Game Chat 2 應如何解決共用音訊裝置 (例如 Kinect) 之使用者的通訊關係衝突。您可以呼叫 [chat\_user\_local::set\_communication\_relationship](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship) 來設定本機使用者與目標使用者之間的通訊關係，而在判斷是否應將來自共用裝置的音訊傳送給遠端使用者或為本機使用者轉譯時，會比較這些關係。您也可以呼叫 [chat\_user\_local::get\_effective\_communication\_relationship](/zh-TW/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](/zh-TW/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 簡介](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[GameChat2 成員](/zh-TW/reference/chat/gamechat2/gamechat2_members)


## Related topics

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