Enable FEC decoding

This commit is contained in:
RogueException
2017-04-07 21:28:03 -03:00
parent 483d26093b
commit 65154e0d4a
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ namespace Discord.Audio.Streams
private readonly byte[] _buffer;
private readonly OpusDecoder _decoder;
public OpusDecodeStream(AudioStream next, int channels = OpusConverter.MaxChannels, int bufferSize = 5760 * 4)
public OpusDecodeStream(AudioStream next, int channels = OpusConverter.MaxChannels, int bufferSize = 5760 * 2 * sizeof(short))
{
_next = next;
_buffer = new byte[bufferSize];