Browse Source

Disable FEC decoding

tags/1.0.0-rc2
RogueException 8 years ago
parent
commit
424216b793
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/Audio/Opus/OpusDecoder.cs

+ 1
- 1
src/Discord.Net.WebSocket/Audio/Opus/OpusDecoder.cs 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}");


Loading…
Cancel
Save