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

# PartyChatControl::ConfigureAudioManipulationVoiceStream

> このチャット コントロールに関連付けられたオーディオ操作音声ストリームを構成する非同期操作をキューに入れます。

このチャット コントロールに関連付けられたオーディオ操作音声ストリームを構成する非同期操作をキューに入れます。

## Syntax

```cpp theme={null}
PartyError ConfigureAudioManipulationVoiceStream(  
    PartyAudioManipulationSourceStreamConfiguration* configuration,  
    void* asyncIdentifier  
)  
```

### Parameters

**`configuration`**   [PartyAudioManipulationSourceStreamConfiguration\*](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partyaudiomanipulationsourcestreamconfiguration.md)\
*optional*

ストリームの構成です。

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

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

### Return value

PartyError

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

## Remarks

構成が null でない場合、このチャット コントロールに対してオーディオ操作音声ストリームが作成されます。このようなストリームは、このチャット コントロールに関連付けられた音声オーディオの出力をリダイレクトします。ライブラリが自動的に音声オーディオを処理してルーティングする代わりに、アプリはソース ストリームを使用して音声オーディオを取得し、ゲーム ロジックを介してルーティングできます。構成が null で、以前に音声ストリームが構成されている場合、音声ストリームは破棄されます。\
\
&#x20;非同期操作の完了時に、null 以外の構成が指定されていた場合、このチャット コントロールの音声ストリームは [PartyChatControl::GetAudioManipulationVoiceStream()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getaudiomanipulationvoicestream.md) を介してクエリできます。完了は [PartyConfigureAudioManipulationVoiceStreamCompletedStateChange](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partyconfigureaudiomanipulationvoicestreamcompletedstatechange.md) によって示されます。

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

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


| フォーマット オプション | ローカル チャット コントロールでサポートされる値 | リモート チャット コントロールでサポートされる値 |
| - | - | - |
| Samples per second | 24 kHz | 24 kHz |
| Channel mask | 0 | 0 |
| Channel count | 1 | 1 |
| Bits per sample | 32 | 16 |
| Sample type | `PartyAudioSampleType::Float` | `PartyAudioSampleType::Integer` |
| Interleaved | false | false |

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

## Requirements

**Header:** Party.h

## See also

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


## Related topics

- [PartyConfigureAudioManipulationVoiceStreamCompletedStateChange](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partyconfigureaudiomanipulationvoicestreamcompletedstatechange.md)
- [PartyAudioManipulationSourceStreamConfiguration](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partyaudiomanipulationsourcestreamconfiguration.md)
- [PartyAudioManipulationSourceStream::GetConfiguration](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/methods/partyaudiomanipulationsourcestream_getconfiguration.md)
- [PartyAudioManipulationSourceStream::GetFormat](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/methods/partyaudiomanipulationsourcestream_getformat.md)
- [PartyAudioManipulationSourceStream::GetAvailableBufferCount](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/methods/partyaudiomanipulationsourcestream_getavailablebuffercount.md)
