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}");
}

View File

@@ -18,7 +18,7 @@ namespace Discord.Audio
{
public class DiscordVoiceAPIClient
{
public const int MaxBitrate = 128;
public const int MaxBitrate = 128 * 1024;
public const string Mode = "xsalsa20_poly1305";
public event Func<string, string, double, Task> SentRequest { add { _sentRequestEvent.Add(value); } remove { _sentRequestEvent.Remove(value); } }