From 8e2ef58b81a980e0895ced50b22edab220d52533 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sun, 18 Jul 2021 20:42:36 -0500 Subject: [PATCH] chore(main): remove rodio sink --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 830eb17..c84df98 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,12 +71,11 @@ fn main() -> Result<()> { // Initialize Audio let (_stream, stream_handle) = OutputStream::try_default().expect("Initialized Audio"); - let sink = Sink::try_new(&stream_handle).expect("Initialize Audio Sink"); std::thread::spawn(move || { - sink.append(recv); - - sink.sleep_until_end(); + stream_handle + .play_raw(recv) + .expect("Failed to play Audio Source"); }); let mut now = Instant::now();