Typos & docs

Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
This commit is contained in:
Aron Heinecke 2021-05-22 18:42:17 +02:00
parent 3972da334d
commit 3015b1d86e
2 changed files with 4 additions and 4 deletions

View file

@ -2,11 +2,11 @@
discord_token = "SECRET"
teamspeak_server = "IP:PORT" # NO tsdns
# identitfy, should change this
# identity, should change this
teamspeak_identity = "MG0DAgeAAgEgAiAIXJBlj1hQbaH0Eq0DuLlCmH8bl+veTAO2+k9EQjEYSgIgNnImcmKo7ls5mExb6skfK2Tw+u54aeDr0OP1ITsC/50CIA8M5nmDBnmDM/gZ//4AAAAAAAAAAAAAAAAAAAAZRzOI"
# join channel ID
teamspeak_channel = 1
# logging stuff
# logging stuff, 0-3
verbose = 1
# ?!
# currently unused
volume = 1.0

View file

@ -70,7 +70,7 @@ impl Read for TsToDiscordPipeline {
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
let len = buf.len() / size_of::<f32>();
let mut wtr: Vec<f32> = vec![0.0; len];
// TODO: can't we support async read for songbird ? this is kinda bad..
// TODO: can't we support async read for songbird ? this is kinda bad as it requires a sync mutex
{
let mut lock = self.data.lock().expect("Can't lock ts voice buffer!");