mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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;
|
||||
offset += 1 + (0b1111 & (byte >> 4));
|
||||
}
|
||||
while (packet[offset] === 0) offset++;
|
||||
// Skip over undocumented Discord byte
|
||||
offset++;
|
||||
|
||||
packet = packet.slice(offset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user