Skip to content

Commit 76363c5

Browse files
committed
refactor: refactor everything
1 parent 5eb0ef7 commit 76363c5

9 files changed

Lines changed: 999 additions & 818 deletions

File tree

‎Cargo.lock‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎player/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ aes-gcm-siv = "0.11.1"
2121
hex = "0.4.3"
2222
spectrum-analyzer = "1.4.0"
2323
image = "0.24.6"
24+
bytes = "1.4.0"
2425

2526
[target.'cfg(windows)'.dependencies]
2627
winapi = { version = "0.3", features = ["winuser", "dwmapi"] }

‎player/src/audio.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ impl AudioThread {
284284
AudioData::Start => {
285285
self.wants_play = true;
286286
self.p.fake_frames_received(0);
287-
self.tx.send(AudioStatus::Buffering).unwrap();
287+
self.tx.send(AudioStatus::Buffering(true)).unwrap();
288288
}
289289
AudioData::Finish => {
290290
while !self.p.finish() {
@@ -314,7 +314,7 @@ impl AudioThread {
314314
if self.p.is_ready() && self.wants_play {
315315
self.wants_play = false;
316316

317-
self.tx.send(AudioStatus::DoneBuffering).unwrap();
317+
self.tx.send(AudioStatus::Buffering(false)).unwrap();
318318

319319
if !self.p.is_started() {
320320
self.p.start()

0 commit comments

Comments
 (0)