Changed bitrate to bits/sec

This commit is contained in:
RogueException
2016-12-30 17:20:59 -04:00
parent d6dc3a4e4b
commit 73461d60c1
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ namespace Discord.Audio
if (value < 1 || value > DiscordVoiceAPIClient.MaxBitrate)
throw new ArgumentOutOfRangeException(nameof(value));
var result = EncoderCtl(_ptr, OpusCtl.SetBitrateRequest, value * 1000);
var result = EncoderCtl(_ptr, OpusCtl.SetBitrateRequest, value);
if (result < 0)
throw new Exception($"Opus Error: {(OpusError)result}");
}