aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorKyle Simpson <[email protected]>2018-02-27 18:49:03 +0000
committerZeyla Hellyer <[email protected]>2018-05-27 18:14:15 -0700
commit4b7a27af3f4e123f807ff4f5c8b9d61d3d976454 (patch)
treedc5fd9213bf60823bd2666dbfdd70cabd1c597f3 /src/lib.rs
parentAdd `lacking_ownership` to `CreateHelpCommand` (diff)
downloadserenity-4b7a27af3f4e123f807ff4f5c8b9d61d3d976454.tar.xz
serenity-4b7a27af3f4e123f807ff4f5c8b9d61d3d976454.zip
Voice fixes, better API adherence, bitrate control, documentation
* Fixing silence frame. * Messed that one up while fighting with the borrow checker. Sorry! * Initial machinery for playback position tracking * Mix multiple input AudioType::Opus streams * Encode for stereo, use nicer "soft clip" * First stab at docs for Audio. * Better-er docs for voice::Audio etc. * Bitrate control. * Fix #270, Better handling of the voice api We were mostly doing the voice API wrong, I've changed OpCode names to be correct. We now listenfor both Ready and Hello at connection init, and do soft checks for Heartbeat ACKs. * Adding missing voice opcodes, related structs * Also removes events for messages which cannot be received. * @Zeyla's recommended changes. * New docstrings now have correct style for referring to functions. * Docstrings also have room to breathe (!) * Rand dependency now properly moved behind the `voice` feature. * Slightly cleaner checks at voice connection initialisation. * Various idiomatic changes throughout. * Prevent compilation of Audio docs example. Likely too much machinery in the background to get a working Handler, I think. * Re-fixing the docstrings. * Fixing travis for Audio docs.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 196a3e0..adc8283 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -131,6 +131,8 @@ extern crate multipart;
extern crate native_tls;
#[cfg(feature = "opus")]
extern crate opus;
+#[cfg(feature = "rand")]
+extern crate rand;
#[cfg(feature = "sodiumoxide")]
extern crate sodiumoxide;
#[cfg(feature = "threadpool")]