Disable FEC decoding

This commit is contained in:
RogueException
2017-04-08 15:44:00 -03:00
parent 1d57d0cba6
commit 424216b793

View File

@@ -32,7 +32,7 @@ namespace Discord.Audio
int result = 0;
fixed (byte* inPtr = input)
fixed (byte* outPtr = output)
result = Decode(_ptr, inPtr + inputOffset, inputCount, outPtr + outputOffset, (output.Length - outputOffset) / SampleSize, 1);
result = Decode(_ptr, inPtr + inputOffset, inputCount, outPtr + outputOffset, (output.Length - outputOffset) / SampleSize, 0); //TODO: Enable FEC
if (result < 0)
throw new Exception($"Opus Error: {(OpusError)result}");