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

# PartyAudioFormat

> 解譯 Party 音訊資料所需的格式資訊。

解譯 Party 音訊資料所需的格式資訊。

## 語法

```cpp theme={null}
struct PartyAudioFormat {  
    uint32_t samplesPerSecond;  
    uint32_t channelMask;  
    uint16_t channelCount;  
    uint16_t bitsPerSample;  
    PartyAudioSampleType sampleType;  
    PartyBool interleaved;  
}  
```

### 成員

**`samplesPerSecond`**   uint32\_t

指定應播放或錄製每個聲道的取樣頻率。

**`channelMask`**   uint32\_t

覆寫多聲道音訊串流中聲道對喇叭位置的指派。

**`channelCount`**   uint16\_t

指定音訊資料的聲道數。

**`bitsPerSample`**   uint16\_t

指定每個樣本的位元數。如果此值無法被位元組整除，則會假設所屬的樣本類型已填補位元，使其可被位元組整除。

**`sampleType`**   [PartyAudioSampleType](/zh-TW/services/playfab/multiplayer/networking/reference/enums/partyaudiosampletype)

指定樣本類型。

**`interleaved`**   [PartyBool](/zh-TW/services/playfab/multiplayer/networking/reference/typedefs)

表示多聲道格式的多聲道音訊資料是否交錯的旗標。

## 需求

**標頭：** Party.h

## 另請參閱

[Party 成員](/zh-TW/services/playfab/multiplayer/networking/reference/party_members)


## Related topics

- [PartyAudioManipulationSinkStream::GetFormat](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSinkStream/methods/partyaudiomanipulationsinkstream_getformat.md)
- [PartyAudioManipulationSourceStream::GetFormat](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/methods/partyaudiomanipulationsourcestream_getformat.md)
- [PartyAudioManipulationSourceStreamConfiguration](/zh-TW/services/playfab/multiplayer/networking/reference/structs/partyaudiomanipulationsourcestreamconfiguration.md)
- [PartyAudioManipulationSinkStreamConfiguration](/zh-TW/services/playfab/multiplayer/networking/reference/structs/partyaudiomanipulationsinkstreamconfiguration.md)
- [Party C/C++ API 概觀](/zh-TW/services/playfab/multiplayer/networking/reference/party_members.md)
