Skip to content

Commit

Permalink
Fix Opus voice streams (#3555)
Browse files Browse the repository at this point in the history
This fixes a wrong assumption about incoming discord voice packets revealed during a recent discord change that broke incoming opus voice streams
  • Loading branch information
dragonbane0 authored and amishshah committed Oct 29, 2019
1 parent 9bcb6a0 commit 3a9eb5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/voice/receiver/PacketHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3a9eb5b

Please sign in to comment.