mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Fix Opus voice streams (#3555)
This fixes a wrong assumption about incoming discord voice packets revealed during a recent discord change that broke incoming opus voice streams
This commit is contained in:
@@ -63,7 +63,9 @@ class PacketHandler extends EventEmitter {
|
|||||||
if (byte === 0) continue;
|
if (byte === 0) continue;
|
||||||
offset += 1 + (0b1111 & (byte >> 4));
|
offset += 1 + (0b1111 & (byte >> 4));
|
||||||
}
|
}
|
||||||
while (packet[offset] === 0) offset++;
|
// Skip over undocumented Discord byte
|
||||||
|
offset++;
|
||||||
|
|
||||||
packet = packet.slice(offset);
|
packet = packet.slice(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user