diff options
| author | Rapptz <[email protected]> | 2017-01-20 23:19:19 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-20 23:19:19 -0500 |
| commit | ff9f5749e13bef6337f1d844019d051125796505 (patch) | |
| tree | 0fa5fae2d7acd83a2a3fb6bbeb9e2f35228862c7 /discord/opus.py | |
| parent | Add support for relationships. (diff) | |
| download | discord.py-ff9f5749e13bef6337f1d844019d051125796505.tar.xz discord.py-ff9f5749e13bef6337f1d844019d051125796505.zip | |
Update copyright year to 2017.
Diffstat (limited to 'discord/opus.py')
| -rw-r--r-- | discord/opus.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/opus.py b/discord/opus.py index 5869599f..911501c1 100644 --- a/discord/opus.py +++ b/discord/opus.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -238,7 +238,7 @@ class Encoder: if ret < 0: log.info('error has happened in set_bandwidth') raise OpusError(ret) - + def set_signal_type(self, req): if req not in signal_ctl: raise KeyError('%r is not a valid signal setting. Try one of: %s' % (req, ','.join(signal_ctl))) @@ -252,14 +252,14 @@ class Encoder: def set_fec(self, enabled=True): ret = _lib.opus_encoder_ctl(self._state, CTL_SET_FEC, 1 if enabled else 0) - + if ret < 0: log.info('error has happened in set_fec') raise OpusError(ret) - + def set_expected_packet_loss_percent(self, percentage): ret = _lib.opus_encoder_ctl(self._state, CTL_SET_PLP, min(100, max(0, int(percentage * 100)))) - + if ret < 0: log.info('error has happened in set_expected_packet_loss_percent') raise OpusError(ret) |