From 32702da330b5c9ff7c71a7af6238f852f539881f Mon Sep 17 00:00:00 2001 From: "Franz Heinzmann (Frando)" Date: Mon, 18 Oct 2021 22:19:43 +0200 Subject: [PATCH] fix --- src/spawn.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/spawn.rs b/src/spawn.rs index 3950313..14849df 100644 --- a/src/spawn.rs +++ b/src/spawn.rs @@ -17,8 +17,7 @@ pub struct FaustHandle { impl FaustHandle { pub async fn spawn() -> Result { - let bin_path = env::var("FAUST_DSP") - .expect("Set FAUST_DSP env variable to path to mixer faust executable"); + let bin_path = env::var("FAUST_DSP").unwrap_or_else(|_| "dsp/mixer".to_string()); let bin_path = if !bin_path.starts_with("/") { format!( "{}/{}",