1
0
Fork 0

Print system backend init errors in auto mode

Since this may fail due to incompatible default sample rates or period
sizes.
This commit is contained in:
Robbert van der Helm 2022-08-19 19:42:42 +02:00
parent 1fc437068a
commit 559d835878

View file

@ -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(())
}
}
});