From 559d835878ab2db2f812b8db75bc9a94c051a2f0 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm <mail@robbertvanderhelm.nl> Date: Fri, 19 Aug 2022 19:42:42 +0200 Subject: [PATCH] Print system backend init errors in auto mode Since this may fail due to incompatible default sample rates or period sizes. --- src/wrapper/standalone.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wrapper/standalone.rs b/src/wrapper/standalone.rs index 9a5ab8d1..58ad35e7 100644 --- a/src/wrapper/standalone.rs +++ b/src/wrapper/standalone.rs @@ -86,9 +86,9 @@ pub fn nih_export_standalone_with_args<P: Plugin, Args: IntoIterator<Item = Stri Err(err) => { nih_error!( "Could not initialize either the JACK or the ALSA backends, falling \ - back to the dummy audio backend" + back to the dummy audio backend: {err:#}" ); - Err(err) + Err(()) } } }); @@ -102,9 +102,9 @@ pub fn nih_export_standalone_with_args<P: Plugin, Args: IntoIterator<Item = Stri Err(err) => { nih_error!( "Could not initialize either the JACK or the CoreAudio backends, \ - falling back to the dummy audio backend" + falling back to the dummy audio backend: {err:#}" ); - Err(err) + Err(()) } } }); @@ -118,9 +118,9 @@ pub fn nih_export_standalone_with_args<P: Plugin, Args: IntoIterator<Item = Stri Err(err) => { nih_error!( "Could not initialize either the JACK or the WASAPI backends, falling \ - back to the dummy audio backend" + back to the dummy audio backend: {err:#}" ); - Err(err) + Err(()) } } });