> ## 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::ConfigureAudioManipulationCaptureStream

> 将异步操作排队以配置音频处理捕获流。

将异步操作排队以配置音频处理捕获流。

## Syntax

```cpp theme={null}
PartyError ConfigureAudioManipulationCaptureStream(  
    PartyAudioManipulationSinkStreamConfiguration* configuration,  
    void* asyncIdentifier  
)  
```

### Parameters

**`configuration`**   [PartyAudioManipulationSinkStreamConfiguration\*](/services/playfab/multiplayer/networking/reference/structs/partyaudiomanipulationsinkstreamconfiguration)\
*optional*

流配置。

**`asyncIdentifier`**   void\*\
*optional*

可选的、应用定义的指针大小上下文值，可用于将完成状态更改与此调用关联。

### Return value

PartyError

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

## Remarks

如果配置非 null，则将为此聊天控件创建一个捕获流。此类流充当此聊天控件的语音输入，将发送到此聊天控件配置为与之通信的所有其他聊天控件。如果配置为 null，并且之前已配置了捕获流，则该捕获流将被销毁。<br /><br /> 异步操作完成后，如果指定了非 null 配置，则可以通过 [PartyLocalChatControl::GetAudioManipulationCaptureStream()](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getaudiomanipulationcapturestream) 查询此聊天控件的捕获流。完成由 [PartyConfigureAudioManipulationCaptureStreamCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partyconfigureaudiomanipulationcapturestreamcompletedstatechange) 指示。

### 平台支持和支持的格式

此函数仅在 Windows、XBOX 和 PlayStation® 5 上受支持。在其他平台上调用将失败。   <br /><br /> Windows 和 XBOX 支持以下格式选项。   <br />

| 格式选项   | 支持的值                          |
| ------ | ----------------------------- |
| 每秒采样数  | 24 kHz                        |
| 声道掩码   | 0                             |
| 声道数    | 1                             |
| 每个采样位数 | 32                            |
| 采样类型   | `PartyAudioSampleType::Float` |
| 交错     | false                         |

<br /><br /> 有关 PlayStation® 5 支持的格式选项列表，请参阅随 Party 库包分发的 README-RealTimeAudioManipulation.md 文档。

## Requirements

**Header:** Party.h

## See also

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