Fixed a couple incoming audio bugs

This commit is contained in:
RogueException
2017-04-06 16:18:21 -03:00
parent 653502c371
commit 0d361def93
3 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ namespace Discord.Audio
_udp = udpSocketProvider();
_udp.ReceivedDatagram += async (data, index, count) =>
{
if (index != 0)
if (index != 0 || count != data.Length)
{
var newData = new byte[count];
Buffer.BlockCopy(data, index, newData, 0, count);