aboutsummaryrefslogtreecommitdiff
path: root/src/voice/audio.rs
diff options
context:
space:
mode:
authorKyle Simpson <[email protected]>2018-04-20 15:57:02 +0100
committerzeyla <[email protected]>2018-04-20 07:57:02 -0700
commit83a0c85b0bf87cb4272b5d6e189d139fc31a6d23 (patch)
treedcfa3bed64ddad1743f2c81ab2ba999c44b360ba /src/voice/audio.rs
parentBump to v0.5.2 (diff)
downloadserenity-83a0c85b0bf87cb4272b5d6e189d139fc31a6d23.tar.xz
serenity-83a0c85b0bf87cb4272b5d6e189d139fc31a6d23.zip
Send silence frames upon connection (Fix #301)
Diffstat (limited to 'src/voice/audio.rs')
-rw-r--r--src/voice/audio.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/voice/audio.rs b/src/voice/audio.rs
index 2aebb83..b541f49 100644
--- a/src/voice/audio.rs
+++ b/src/voice/audio.rs
@@ -6,6 +6,7 @@ use std::{
pub const HEADER_LEN: usize = 12;
pub const SAMPLE_RATE: u32 = 48_000;
+pub static SILENT_FRAME: [u8; 3] = [0xf8, 0xff, 0xfe];
/// A readable audio source.
pub trait AudioSource: Send {