fix: make lowfi compile on non-linux

This commit is contained in:
talwat 2025-08-08 20:12:13 +02:00
parent 620b568926
commit 19ca315509

View File

@ -122,6 +122,9 @@ impl Player {
OutputStreamBuilder::open_default_stream()? OutputStreamBuilder::open_default_stream()?
}; };
#[cfg(not(target_os = "linux"))]
let mut stream = OutputStreamBuilder::open_default_stream()?;
stream.log_on_drop(false); // Frankly, this is a stupid feature. Stop shoving your crap into my beloved stderr!!! stream.log_on_drop(false); // Frankly, this is a stupid feature. Stop shoving your crap into my beloved stderr!!!
let sink = Sink::connect_new(stream.mixer()); let sink = Sink::connect_new(stream.mixer());