Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils
FSortedVoicePacketNode This structure represents an individual packet in the FVoicePacketBuffer.
| Name | FSortedVoicePacketNode |
| Type | struct |
| Header File | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/VoicePacketBuffer.h |
| Include Path | #include "VoicePacketBuffer.h" |
Syntax
struct FSortedVoicePacketNode
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSortedVoicePacketNode() |
Default constructor. | VoicePacketBuffer.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AudioBufferMem | TArray< float > | The actual resulting audio data. allocated ahead of time to minimize memory churn. | VoicePacketBuffer.h | |
| BufferNumSamples | int32 | Number of samples. | VoicePacketBuffer.h | |
| IndexInPacketBuffer | int32 | This is used when we are done with this packet. | VoicePacketBuffer.h | |
| NextPacket | FSortedVoicePacketNode * | Used for sorting packet nodes. | VoicePacketBuffer.h | |
| SamplesLeft | int32 | Updated on every call of PopAudio to keep track of where we are mid-packet. | VoicePacketBuffer.h | |
| StartSample | uint64 | Actual sample start time for this sample. | VoicePacketBuffer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Initialize
(
const void* InBuffer, |
This function is called when a new packet is pushed to avoid reallocating memory. | VoicePacketBuffer.h |