aboutsummaryrefslogtreecommitdiff
path: root/discord/player.py
Commit message (Collapse)AuthorAgeFilesLines
* Update voice code to vws V4Imayhaveborkedit2019-01-281-4/+17
| | | | | | | - Update internals to be compatible with v4 - Adds multiple encryption mode support. Previously only `xsalsa20_poly1305` was supported. Now `xsalsa20_poly1305_suffix` is also supported. Note: There is no (nice) way to manually select a mode. The user needn't worry about this however. - Fixed speaking state bug. When you disconnected from a voice channel while a bot was playing, upon reconnect you would be unable to hear the bot. This was caused by bots not sending their speaking state while transmitting. Bots will now set their speaking state properly when transmitting. Note: This does not account for sending actual silence, the speaking indicator will still be active.
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* [lint] Rename exception variables to excHornwitser2018-11-241-4/+4
| | | | | Use the more explicit (and common) exc instead of e as the variable holding the exception in except handlers.
* [lint] Limit unneccessarily broad except clausesHornwitser2018-11-241-1/+1
| | | | Add exception qualifier(s) to bare except clauses swallowing exceptions.
* Fix up the Sphinx strings causing warnings.Rapptz2018-09-151-2/+2
|
* [lint] Fix incorrect and inconsistent whitespaceHornwitser2018-08-221-1/+1
| | | | Adjust whitespace to be consistent with the rest of the library.
* Fix self._process not existing during cleanup() in case of errorDaniel2017-11-211-0/+1
|
* Fix waiting for resume when calling stop() on AudioPlayerDaniel2017-07-211-0/+2
|
* Call cleanup on AudioSource.__del__.Rapptz2017-07-191-0/+7
|
* Add some logging for when ffmpeg processes get terminated.Rapptz2017-07-181-1/+7
|
* Log when a player's after function fails.Rapptz2017-06-021-1/+4
|
* Allow setting a default volume in PCMVolumeTransformer.Rapptz2017-04-191-2/+5
|
* Add PCMVolumeTransformer to augment volume of a PCM stream.Rapptz2017-04-191-3/+55
| | | | | | This also introduces the idea of replacing the VoiceClient.source on the fly. Note that this internally pauses and resumes the audio stream.
* Add VoiceClient.is_paused to query pause state.Rapptz2017-04-191-0/+3
|
* Fix static cut-off when playing.Rapptz2017-04-181-2/+8
|
* Fix FFmpegPCMAudio not working with spaces in filename.Rapptz2017-04-181-1/+1
|
* Re-implement voice sending.Rapptz2017-04-181-0/+248
This is a complete redesign of the old voice code. A list of major changes is as follows: * The voice websocket will now automatically reconnect with exponential back-off just like the regular Client does. * Removal of the stream player concept. * Audio now gracefully pauses and resumes when a disconnect is found. * Introduce a discord.AudioSource concept to abstract streams * Flatten previous stream player functionality with the VoiceClient, e.g. player.stop() is now voice_client.stop() * With the above re-coupling this means you no longer have to store players anywhere. * The after function now requires a single parameter, the error, if any existed. This will typically be None. A lot of this design is experimental.