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