chore(main): remove rodio sink
This commit is contained in:
parent
b4b84d0cc5
commit
8e2ef58b81
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue