Changed bitrate to bits/sec
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
@@ -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); } }
|
||||
|
||||
Reference in New Issue
Block a user