mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 09:04:13 +02:00
better celt handling
This commit is contained in:
parent
dfce4fd6a1
commit
2601de65a0
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ export function VoiceInit(stream: BitStream): VoiceInitPacket {
|
|||
const codec = stream.readASCIIString();
|
||||
const quality = stream.readUint8();
|
||||
// no clue, from 2017-2-14 update
|
||||
const extraData = (codec === 'vaudio_celt') ? stream.readUint16() : 0;
|
||||
const extraData = (codec === 'vaudio_celt' && quality === 255) ? stream.readUint16() : 0;
|
||||
return {
|
||||
packetType: 'voiceInit',
|
||||
codec: codec,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue