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

> game_chat_audio_manipulation_mode_flags

# game\_chat\_audio\_manipulation\_mode\_flags

表示所请求的音频处理功能状态。

## 语法

```cpp theme={null}
enum class game_chat_audio_manipulation_mode_flags  
{  
    none = 0x0,  
    pre_encode_stream_manipulation = 0x1,  
    post_decode_stream_manipulation = 0x2,  
}  
```

## 常量

| 常量 | 描述 |
| - | - |
| none | 禁用所有音频处理。 |
| pre\_encode\_stream\_manipulation | 启用对本地生成音频的处理。 指定此标志将授予发送方使用 [pre\_encode\_audio\_stream](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/pre_encode_audio_stream/pre_encode_audio_stream.md) 对象访问聊天用户音频数据以进行处理和操作的权限。 |
| post\_decode\_stream\_manipulation | 启用对远程生成音频的处理。 指定此标志将授予接收方使用 [post\_decode\_audio\_source\_stream](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/post_decode_audio_source_stream/post_decode_audio_source_stream.md) 和 [post\_decode\_audio\_sink\_stream](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/post_decode_audio_sink_stream/post_decode_audio_sink_stream.md) 对象访问聊天用户音频数据以进行处理和操作的权限。 |

## 备注

此枚举描述您的应用可从 Game Chat 2 为聊天实例请求的音频处理功能。您可以通过调用 [chat\_manager::audio\_manipulation\_mode](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_audio_manipulation_mode.md) 方法来检索该聊天实例的当前音频处理模式。可在初始化聊天实例时通过调用 [chat\_manager::initialize](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md) 方法来设置音频处理模式。

有关处理聊天音频数据的更多信息,请参阅 [实时音频处理](https://docs.xbox.com/zh-CN/services/xbox-services/multiplayer/chat/game-chat2/real-time-audio-manipulation.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)\
[chat\_manager](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/chat_manager/chat_manager.md)


## Related topics

- [audio_manipulation_mode](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_audio_manipulation_mode.md)
- [chat_indicator](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/chat_user/methods/chat_user_chat_indicator.md)
- [实时音频处理](https://docs.xbox.com/zh-CN/services/xbox-services/multiplayer/chat/game-chat2/real-time-audio-manipulation.md)
- [initialize](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
- [GameChat2 成员（API 内容）](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/gamechat2_members.md)
