1
0
Fork 0

Set up the logger for the standalone target

This commit is contained in:
Robbert van der Helm 2022-04-24 15:50:17 +02:00
parent 60593e7cc3
commit 084d34fe5c

View file

@ -2,6 +2,7 @@
//! of relying on a plugin host. This is mostly useful for quickly testing GUI changes. //! of relying on a plugin host. This is mostly useful for quickly testing GUI changes.
use self::wrapper::{Wrapper, WrapperConfig, WrapperError}; use self::wrapper::{Wrapper, WrapperConfig, WrapperError};
use super::util::setup_logger;
use crate::plugin::Plugin; use crate::plugin::Plugin;
mod backend; mod backend;
@ -57,6 +58,8 @@ pub fn nih_export_standalone<P: Plugin>() -> bool {
pub fn nih_export_standalone_with_args<P: Plugin, Args: IntoIterator<Item = String>>( pub fn nih_export_standalone_with_args<P: Plugin, Args: IntoIterator<Item = String>>(
args: Args, args: Args,
) -> bool { ) -> bool {
setup_logger();
// TODO: Do something with the arguments // TODO: Do something with the arguments
// FIXME: The configuration should be set based on the command line arguments // FIXME: The configuration should be set based on the command line arguments
@ -74,7 +77,7 @@ pub fn nih_export_standalone_with_args<P: Plugin, Args: IntoIterator<Item = Stri
timesig_denom: 4, timesig_denom: 4,
}; };
eprintln!( nih_log!(
"Audio and MIDI IO has not yet been implemented in the standalone targets. So if you're \ "Audio and MIDI IO has not yet been implemented in the standalone targets. So if you're \
not hearing anything, then that's correct!" not hearing anything, then that's correct!"
); );