Skip to main content

SvcSounds

Part of Net/Svc message.

NameTypeSize in bytesSize in bitsValue
ReliableSoundbool0.1251-
NumSounds¹int181 if ReliableSound bit is set.
Lengthint1 if ReliableSound bit is set, otherwise 2.8 if ReliableSound bit is set, otherwise 16.-
Databyte[]Length / 8LengthSoundInfo[]

¹ Optional: Only set if the ReliableSound bit is zero.

Pseudocode Example

let reliable_sound = read_one_bit();

let num_sounds = if reliable_sound {
1
} else {
read_bits(8)
};

let length = if reliable_sound {
read_bits(8)
} else {
read_bits(16)
};

let data = read_bit_slice(length);