This commit is contained in:
Franz Heinzmann (Frando) 2021-10-18 22:19:43 +02:00
parent 0863cd57e4
commit 32702da330

View file

@ -17,8 +17,7 @@ pub struct FaustHandle {
impl FaustHandle {
pub async fn spawn() -> Result<Self, std::io::Error> {
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!(
"{}/{}",