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

# PartyLocalChatControl::SetAudioInputMuted

> 配置用户的音频输入是否处于静音状态。

配置用户的音频输入是否处于静音状态。

## Syntax

```cpp theme={null}
PartyError SetAudioInputMuted(  
    PartyBool muted  
)  
```

### Parameters

**`muted`**   [PartyBool](/services/playfab/multiplayer/networking/reference/typedefs)

True 表示静音，否则为 false。

### Return value

PartyError

如果调用成功，则返回 `c_partyErrorSuccess`；否则返回错误代码。可通过 [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage) 检索错误代码的可读形式。

## Remarks

静音决定是否将从聊天控件的音频输入中捕获音频数据并根据已配置的关系发送到相应的聊天控件。当音频输入被静音时，无论已配置何种关系，都不会捕获音频数据。静音不会停止已发送的文本消息或通过调用 [SynthesizeTextToSpeech()](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_synthesizetexttospeech) 生成的音频。

## Requirements

**Header:** Party.h

## See also

[PartyLocalChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol)


## Related topics

- [PlayFab Party 聊天权限和静音](/zh-CN/services/playfab/community/voice-communications/concepts-chat-permissions-and-muting.md)
- [语音聊天故障排除](/zh-CN/services/playfab/community/voice-communications/concepts-audio-troubleshooting.md)
- [PartyLocalChatControl::GetAudioInputMuted](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getaudioinputmuted.md)
- [PartyLocalChatControl::SetIncomingAudioMuted](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_setincomingaudiomuted.md)
- [PartyLocalChatControl::SetAudioInput](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_setaudioinput.md)
