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

# PartyLocalChatControl::ConfigureAudioManipulationCaptureStream

> 音声操作キャプチャ ストリームを構成する非同期操作をキューに追加します。

音声操作キャプチャ ストリームを構成する非同期操作をキューに追加します。

## 構文

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

### パラメーター

**`configuration`**   [PartyAudioManipulationSinkStreamConfiguration\*](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partyaudiomanipulationsinkstreamconfiguration.md)\
*オプション*

ストリーム構成。

**`asyncIdentifier`**   void\*\
*オプション*

完了状態の変化をこの呼び出しに関連付けるために使用できる、オプションでアプリ定義のポインター サイズのコンテキスト値。

### 戻り値

PartyError

呼び出しが成功した場合は `c_partyErrorSuccess`、それ以外の場合はエラー コード。エラー コードの人間が読める形式は、[PartyManager::GetErrorMessage()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md) で取得できます。

## 解説

構成が非 null の場合、このチャット コントロール用にキャプチャ ストリームが作成されます。このストリームは、このチャット コントロールの音声入力として機能し、このチャット コントロールが通信するように構成されている他のすべてのチャット コントロールに送信されます。構成が null の場合、およびキャプチャ ストリームが以前に構成されていた場合は、キャプチャは破棄されます。\
\
&#x20;非 null 構成が指定された場合、非同期操作の完了時に、[PartyLocalChatControl::GetAudioManipulationCaptureStream()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getaudiomanipulationcapturestream.md) を介してこのチャット コントロールのキャプチャ ストリームを照会できます。完了は [PartyConfigureAudioManipulationCaptureStreamCompletedStateChange](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partyconfigureaudiomanipulationcapturestreamcompletedstatechange.md) によって示されます。

### プラットフォーム サポートとサポートされているフォーマット

この関数は Windows、XBOX、PlayStation® 5 でのみサポートされています。他のプラットフォームでの呼び出しは失敗します。\
\
&#x20;Windows と XBOX では、以下のフォーマット オプションがサポートされています。\


| フォーマット オプション | サポートされる値 |
| - | - |
| 1 秒あたりのサンプル数 | 24 kHz |
| チャンネル マスク | 0 |
| チャンネル数 | 1 |
| 1 サンプルあたりのビット数 | 32 |
| サンプル タイプ | `PartyAudioSampleType::Float` |
| インターリーブ | false |

\
\
&#x20;PlayStation® 5 でサポートされているフォーマット オプションの一覧については、Party ライブラリ パッケージと共に配布されている README-RealTimeAudioManipulation.md ドキュメントを参照してください。

## 要件

**ヘッダー:** Party.h

## 関連項目

[PartyLocalChatControl](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol.md)


## Related topics

- [PartyAudioManipulationSinkStreamConfiguration](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partyaudiomanipulationsinkstreamconfiguration.md)
- [PartyAudioManipulationSinkStream::GetConfiguration](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSinkStream/methods/partyaudiomanipulationsinkstream_getconfiguration.md)
- [PartyConfigureAudioManipulationCaptureStreamCompletedStateChange](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partyconfigureaudiomanipulationcapturestreamcompletedstatechange.md)
- [PartyAudioManipulationSinkStream::GetFormat](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSinkStream/methods/partyaudiomanipulationsinkstream_getformat.md)
- [リアルタイム オーディオ操作でカスタム ボイス エフェクトを適用する](https://docs.xbox.com/ja-jp/services/playfab/community/voice-communications/concepts-realtime-audio-manipulation.md)
