diff --git a/src/main.rs b/src/main.rs index 9d8213f..1ed9b76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -234,9 +234,11 @@ fn build_ui(application: >k::Application) { } fn main() { - // instantiate rodio before gtk and don't do anything with it - // this is silly but it's the easiest way to prevent cpal crashing on windows - rodio::default_output_device().unwrap(); + #[cfg(target_os = "windows")] { + // instantiate rodio before gtk and don't do anything with it + // this is silly but it's the easiest way to prevent cpal crashing on windows + rodio::default_output_device().unwrap(); + } let application = gtk::Application::new( Some("dev.tinybird.max.lull"),