Remove sdl2 build instructions and add some startup info

Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
This commit is contained in:
Aron Heinecke 2021-05-22 03:15:09 +02:00
parent c4c5d5945f
commit 18d08e14fb
2 changed files with 6 additions and 10 deletions

View file

@ -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
Then join a voice channel, type ~join in a text channel the bot can access.

View file

@ -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::<f32>();
let mut wtr: Vec<f32> = vec![0.0; len];