Module |
|
Header |
/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/VoicePacketBuffer.h |
Include |
#include "VoicePacketBuffer.h" |
class FVoicePacketBuffer
FVoicePacketBuffer This class is used to handle sorting of packets as they arrive. This class is intended to be thread safe, as long as PushPacket() nor PopAudio() are called by multiple threads.
Name | Description | |
---|---|---|
|
FVoicePacketBuffer |
This is the only constructor that should be used with FVoicePacketBuffer. |
Name | Description | ||
---|---|---|---|
|
DropOldestAudio ( |
When called, will seek forward in the buffer by the requested number of samples, skipping and removing the audio we seek past. |
|
|
GetCurrentSample() |
Get whatever the most recent sample processed is for buffer-accurate timing. |
|
|
GetNumBufferedSamples() |
This will return the current amount of samples buffered here. |
|
|
IsIdle() |
Whether we have idled out. This is used to automatically close the audio stream and free resources when unused. |
|
|
PopAudio ( |
Pop RequestedSamples of float samples into DestBuffer. |
|
|
PushPacket ( |
Push a new packet of decompressed audio onto the buffer to be consumed. |
|
|
Reset ( |
Clears the buffer. |