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

# chat_user::chat_indicator

> chat_user::chat_indicator

# chat\_user::chat\_indicator

指示是否可以进行聊天以及当前是否正在为此用户生成音频。

## 语法

```cpp theme={null}
game_chat_user_chat_indicator chat_indicator(  
)  
```

### 参数

### 返回值

类型：game\_chat\_user\_chat\_indicator

## 备注

此指示器旨在协助 UI 图标表示，以便用户可以确定他们为什么听到/看到当前听到/看到的内容（“那是谁在讲话？”），或者为什么听不到/看不到。

此值会频繁变化，通常每个图形帧都进行轮询。

如果启用了后解码音频操作，聊天指示器将根据哪些后解码音频源流正在尝试并被允许与哪些后解码音频接收器流对话来设置。无论应用如何将后解码源流混合在一起，聊天指示器都将被设置。

## 要求

**头文件：** GameChat2.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[chat\_user](/reference/chat/gamechat2/classes/chat_user/chat_user)\
[game\_chat\_user\_chat\_indicator](/reference/chat/gamechat2/enums/game_chat_user_chat_indicator)\
[chat\_user::chat\_user\_local::set\_microphone\_muted](/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_microphone_muted)\
[game\_chat\_audio\_manipulation\_mode\_flags::post\_decode\_stream\_manipulation](/reference/chat/gamechat2/enums/game_chat_audio_manipulation_mode_flags)


## Related topics

- [chat_user_local::remote_user_muted](/zh-CN/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_remote_user_muted.md)
- [game_chat_user_chat_indicator](/zh-CN/reference/chat/gamechat2/enums/game_chat_user_chat_indicator.md)
- [chat_user_local::microphone_muted](/zh-CN/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_microphone_muted.md)
- [chat_user_local::set_remote_user_muted](/zh-CN/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_remote_user_muted.md)
- [chat_user_local::set_microphone_muted](/zh-CN/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_microphone_muted.md)
