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

# PartyAudioManipulationSourceStream::GetAvailableBufferCount

> Retrieves the total number of buffers available to retrieve from this stream via.

Retrieves the total number of buffers available to retrieve from this stream via [PartyAudioManipulationSourceStream::GetNextBuffer()](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/methods/partyaudiomanipulationsourcestream_getnextbuffer).

## Syntax

```cpp theme={null}
PartyError GetAvailableBufferCount(  
    uint32_t* count  
)  
```

### Parameters

**`count`**   uint32\_t\*\
*output*

The output count of available buffers.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Remarks

This can be useful if the caller prefers to send audio through their pipeline in batches of buffers. Because this buffer count is limited by the max audio queue size specified via [PartyChatControl::ConfigureAudioManipulationVoiceStream()](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_configureaudiomanipulationvoicestream), callers should give their audio processing pipeline ample time to process the buffers and return them to [PartyAudioManipulationSourceStream::ReturnBuffer()](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/methods/partyaudiomanipulationsourcestream_returnbuffer) to prevent dropped audio.

## Requirements

**Header:** Party.h

## See also

[PartyAudioManipulationSourceStream](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/partyaudiomanipulationsourcestream)


## Related topics

- [PartyAudioManipulationSourceStream::GetNextBuffer](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/methods/partyaudiomanipulationsourcestream_getnextbuffer.md)
- [Apply custom voice effects with real-time audio manipulation](/services/playfab/community/voice-communications/concepts-realtime-audio-manipulation.md)
- [PartyAudioManipulationSourceStream](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/partyaudiomanipulationsourcestream.md)
- [post_decode_audio_source_stream::get_available_buffer_count](/reference/chat/gamechat2/classes/post_decode_audio_source_stream/methods/post_decode_audio_source_stream_get_available_buffer_count.md)
- [PartyAudioManipulationSourceStream::ReturnBuffer](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSourceStream/methods/partyaudiomanipulationsourcestream_returnbuffer.md)
