FSortedVoicePacketNode

[FSortedVoicePacketNode](API\Plugins\OnlineSubsystemUtils\FSortedVoicePacketNode) This structure represents an individual packet in the [FVoicePacketBuffer](API\Plugins\OnlineSubsystemUtils\FVoicePacketBuffer).

Choose your operating system:

Windows

macOS

Linux

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

Name Description

Public variable

TArray< float >

 

AudioBufferMem

The actual resulting audio data. allocated ahead of time to minimize memory churn.

Public variable

int32

 

BufferNumSamples

Number of samples.

Public variable

int32

 

IndexInPacketBuffer

This is used when we are done with this packet.

Public variable

FSortedVoicePac...

 

NextPacket

Used for sorting packet nodes.

Public variable

int32

 

SamplesLeft

Updated on every call of PopAudio to keep track of where we are mid-packet.

Public variable

uint64

 

StartSample

Actual sample start time for this sample.

Constructors

Name Description

Public function

FSortedVoicePacketNode()

Default constructor.

Functions

Name Description

Public function

void

 

Initialize

(
    const void* InBuffer,
    uint32 NumBytes,
    int64 InStartSample,
    EVoipStreamDataFormat InFormat
)

This function is called when a new packet is pushed to avoid reallocating memory.