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}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user