diff options
| author | Imayhaveborkedit <[email protected]> | 2019-06-19 18:29:00 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-06-20 22:52:47 -0400 |
| commit | 20fa3001f2a85b0add43819352d723a9948e0b9c (patch) | |
| tree | 8eccf2c9ccc446e01097e8949b41932f47fd194a | |
| parent | [commands] Add missing word in HelpCommand documentation (diff) | |
| download | discord.py-20fa3001f2a85b0add43819352d723a9948e0b9c.tar.xz discord.py-20fa3001f2a85b0add43819352d723a9948e0b9c.zip | |
Raise max encoder bitrate to 512kbps
Any higher is useless for opus anyways.
| -rw-r--r-- | discord/opus.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/opus.py b/discord/opus.py index 70ed8056..9ad6b11c 100644 --- a/discord/opus.py +++ b/discord/opus.py @@ -240,7 +240,7 @@ class Encoder: return _lib.opus_encoder_create(self.SAMPLING_RATE, self.CHANNELS, self.application, ctypes.byref(ret)) def set_bitrate(self, kbps): - kbps = min(128, max(16, int(kbps))) + kbps = min(512, max(16, int(kbps))) _lib.opus_encoder_ctl(self._state, CTL_SET_BITRATE, kbps * 1024) return kbps |