/// Load the VST plug-in & exit the process on failure
Load the VST plug-in & exit the process on failure
Load the VST plug - in & exit the process on failure
fn run_initialize_plugin(run_options: &RunOptions, host: &mut TestPluginHost) {
    let path = Path::new(run_options.plugin_path());
    log::info!("Loading VST from: {}...", path.to_str().unwrap());
    if let Err(err) = host.load_plugin(path) {
        log::error!("Failed to load plugin {}", err);
        exit(1);
    }
    log::info!("Initializing audio thread");
    if let Err(err) = host.start_audio() {
        log::error!("Failed to start host: {}", err);
        exit(1);
    }
}
fn run_initialize_plugin ( run_options : & RunOptions , host : & mut TestPluginHost ) { let path = Path :: new ( run_options . plugin_path ( ) ) ; log :: info ! ( " " path to_str ( ) unwrap ( ) ) ; if let Err ( err ) = host . load_plugin ( path ) { log :: error ! ( " " err ) ; exit ( 1 ) ; } log :: info ! ( " " ) ; if let Err ( err ) = host . start_audio ( ) { log :: error ! ( " " err ) ; exit ( 1 ) ; } }
Load the VST plug-in & exit the process on failure
Load the VST plug - in & exit the process on failure
run_options
&RunOptions
host
&mut TestPluginHost