SimpleVoipPacket¶
Namespace: inet
class SimpleVoipPacket
Represents a voice packet used by SimpleVoipSender / SimpleVoipReceiver
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
(no description) |
Fields¶
Name |
Type |
Description |
|---|---|---|
id |
int |
|
mutable |
bool |
|
complete |
bool |
|
correct |
bool |
|
properlyRepresented |
bool |
|
chunkLength |
||
rawBin |
string[] |
|
rawHex |
string[] |
|
regionTags |
||
totalLengthField |
uint16_t |
length of total SimpleVoipPacket in bytes |
talkspurtID |
unsigned int |
identifies the talkspurt |
talkspurtNumPackets |
unsigned int |
number of all packets of current talkspurt |
packetID |
unsigned int |
0..talkspurtNumPackets-1 |
voipTimestamp |
simtime_t |
“mouth” timestamp of begin of voice in this packet |
voiceDuration |
simtime_t |
duration of voice in this packet |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
Source code¶
//
// Represents a voice packet used by SimpleVoipSender / SimpleVoipReceiver
//
class SimpleVoipPacket extends FieldsChunk
{
uint16_t totalLengthField; // length of total SimpleVoipPacket in bytes
unsigned int talkspurtID; // identifies the talkspurt
unsigned int talkspurtNumPackets; // number of all packets of current talkspurt
unsigned int packetID; // 0..talkspurtNumPackets-1
simtime_t voipTimestamp; // "mouth" timestamp of begin of voice in this packet
simtime_t voiceDuration; // duration of voice in this packet
}