FVoicePacketImpl

Defines the data involved in a voice packet

Windows
MacOS
Linux

Inheritance Hierarchy

FVoicePacket

FVoicePacketImpl

References

Module

OnlineSubsystemUtils

Header

/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/VoicePacketImpl.h

Include

#include "VoicePacketImpl.h"

Syntax

class FVoicePacketImpl : public FVoicePacket

Remarks

Defines the data involved in a voice packet

Variables

Name Description

Protected variable

TArray< uint8 >

 

Buffer

The data that is to be sent/processed

Protected variable

uint16

 

Length

The current amount of space used in the buffer for this packet

Protected variable

int16

 

MicrophoneAmplitude

Current loudness of the given microphone, in Q15.

Protected variable

uint64

 

SampleCount

Protected variable

FUniqueNetIdPtr

 

Sender

The unique net id of the talker sending the data

Constructors

Name Description

Public function

FVoicePacketImpl()

Zeros members and validates the assumptions

Public function

FVoicePacketImpl

(
    const FVoicePacketImpl& Other
)

Copies another packet

Destructors

Name Description

Public function Virtual

~FVoicePacketImpl()

Should only be used by TSharedPtr and FVoiceData

Functions

Name Description

Public function Virtual

void

 

ResetData()

Overridden from FVoicePacket

Name Description

Public function Virtual

uint16

 

GetBufferSize()

Public function Virtual Const

uint64

 

GetSampleCounter()

Return the index of the first sample of this packet in the audio stream.

Public function Virtual

FUniqueNetId...

 

GetSender()

Public function Virtual

uint16

 

GetTotalPacketSize()

Public function Virtual

bool

 

IsReliable()

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Serialize the voice packet data to a buffer

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss