stop cpal from crashing on windows!

This commit is contained in:
Max Bradbury 2021-04-26 22:00:43 +01:00
parent 7db845e03e
commit 908ca1d769
1 changed files with 4 additions and 0 deletions

View File

@ -234,6 +234,10 @@ fn build_ui(application: &gtk::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();
let application = gtk::Application::new(
Some("dev.tinybird.max.lull"),
Default::default()