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

TSharedPtr < con...

 

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

TSharedPtr < ...

 

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback