From 18d08e14fb35c38bd021e11855fe4b8cbba7fb14 Mon Sep 17 00:00:00 2001 From: Aron Heinecke Date: Sat, 22 May 2021 03:15:09 +0200 Subject: [PATCH] Remove sdl2 build instructions and add some startup info Signed-off-by: Aron Heinecke --- README.md | 14 +++++--------- src/main.rs | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c839082..91443dc 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,8 @@ -# SDL setup -See [sdl2 crate](https://crates.io/crates/sdl2) -## windows -For Rustup users, this folder will be in +# Teamspeak3 <-> Discord Voice Bridge - C:\Users\{Your Username}\.rustup\toolchains\{current toolchain}\lib\rustlib\{current toolchain}\lib +Requires your own discord bot token. -Copy SDL2.dll from +## Starting +Setup your credentials inside .credentials.toml - SDL2-devel-2.0.x-VC\SDL2-2.0.x\lib\x64\ - -into your cargo project, right next to your Cargo.toml \ No newline at end of file +Then join a voice channel, type ~join in a text channel the bot can access. \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index b7b1d78..c4850db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,7 +71,7 @@ impl Read for TsToDiscordPipeline { // TODO: can't we support async read for songbird ? this is kinda bad.. let mut lock = self.data.lock().expect("Can't lock ts voice buffer!"); - // and this is really ugly.. read only works for u8, but we get an f32 and need to convert that without chaning AudioHandlers API + // and this is really ugly.. read only works for u8, but we get an f32 and need to convert that without changing AudioHandlers API // also Read for stuff that specifies to use f32 is kinda meh let len = buf.len() / size_of::(); let mut wtr: Vec = vec![0.0; len];