Remove sdl2 build instructions and add some startup info
Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
This commit is contained in:
parent
c4c5d5945f
commit
18d08e14fb
2 changed files with 6 additions and 10 deletions
14
README.md
14
README.md
|
@ -1,12 +1,8 @@
|
||||||
# SDL setup
|
# Teamspeak3 <-> Discord Voice Bridge
|
||||||
See [sdl2 crate](https://crates.io/crates/sdl2)
|
|
||||||
## windows
|
|
||||||
For Rustup users, this folder will be in
|
|
||||||
|
|
||||||
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\
|
Then join a voice channel, type ~join in a text channel the bot can access.
|
||||||
|
|
||||||
into your cargo project, right next to your Cargo.toml
|
|
|
@ -71,7 +71,7 @@ impl Read for TsToDiscordPipeline {
|
||||||
// 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..
|
||||||
let mut lock = self.data.lock().expect("Can't lock ts voice buffer!");
|
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
|
// also Read for stuff that specifies to use f32 is kinda meh
|
||||||
let len = buf.len() / size_of::<f32>();
|
let len = buf.len() / size_of::<f32>();
|
||||||
let mut wtr: Vec<f32> = vec![0.0; len];
|
let mut wtr: Vec<f32> = vec![0.0; len];
|
||||||
|
|
Loading…
Reference in a new issue