Imayhaveborkedit fedf26bf3e Add FFmpegOpusAudio and other voice improvements
Rework FFmpeg player and add FFmpegOpusAudio

I have extracted some of the base FFmpeg source code into its own
base class and reimplemented the PCM and the new Opus variants.

Support avconv probing

Also fix a few things

Update `__all__`

Fix the bugs

Rework probe functions and add factory function

Probing involves subprocess so it has been reworked into an async
factory function.

Add docs + a few tweaks

* Removed unnecessary read() and is_opus() functions from FFmpegAudio
* Clear self._stdout in cleanup()
* Add 20 second process communication timeout to probe functions
* Capped probe function bitrate values at 512

Change AudioPlayer to use more accurate, monotonic time.perf_counter()

Add lazy opus loading

The library now no longer loads libopus on import, only on
opus.Encoder creation or manually.

Fix review nits
2019-07-22 20:46:40 -04:00
..
2018-01-26 12:46:19 -05:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-07-18 18:06:42 -04:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-07-17 13:27:37 -07:00
2019-06-29 20:26:47 -04:00
2019-06-07 19:27:46 -04:00
2019-06-29 19:14:19 -04:00
2019-01-28 22:22:50 -05:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00
2019-06-12 00:47:42 -04:00
2019-07-01 03:08:49 +10:00
2019-06-07 19:27:46 -04:00
2019-06-07 19:27:46 -04:00