chore(main): remove rodio sink

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-07-18 20:42:36 -05:00
parent b4b84d0cc5
commit 8e2ef58b81
1 changed files with 3 additions and 4 deletions

View File

@ -71,12 +71,11 @@ fn main() -> Result<()> {
// Initialize Audio // Initialize Audio
let (_stream, stream_handle) = OutputStream::try_default().expect("Initialized 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 || { std::thread::spawn(move || {
sink.append(recv); stream_handle
.play_raw(recv)
sink.sleep_until_end(); .expect("Failed to play Audio Source");
}); });
let mut now = Instant::now(); let mut now = Instant::now();