change player backend from rodio to playback-rs

because rodio struggled to load some
(possibly broken, but still playable) audio files.
this is not perfect and sometimes suffers from
small lags, and it uses song_finished_polling
instead of being event-driven.
This commit is contained in:
Mark
2024-07-14 18:01:01 +02:00
parent 3a0d28b9b4
commit aa657382fa
8 changed files with 189 additions and 8 deletions

View File

@@ -6,11 +6,14 @@ edition = "2021"
[dependencies]
base64 = "0.22.1"
colorize = "0.1.0"
playback-rs = { version = "0.4.3", optional = true }
rand = "0.8.5"
rc-u8-reader = "2.0.16"
rodio = { version = "0.18.0", optional = true }
sysinfo = "0.30.12"
[features]
# default = ["playback"]
playback = ["dep:rodio"]
default = ["playback"]
playback = ["playback-via-playback-rs"]
playback-via-playback-rs = ["dep:playback-rs"]
playback-via-rodio = ["dep:rodio"]