extract plugin crate

This commit is contained in:
🪞👃🪞 2025-01-11 22:23:58 +01:00
parent 1f10c95ed0
commit 8c6716adce
14 changed files with 53 additions and 15 deletions

14
plugin/src/vst2_tui.rs Normal file
View file

@ -0,0 +1,14 @@
use crate::*;
impl<E: Engine> ::vst::host::Host for Plugin<E> {}
fn set_vst_plugin <E: Engine> (host: &Arc<Mutex<Plugin<E>>>, _path: &str) -> Usually<PluginKind> {
let mut loader = ::vst::host::PluginLoader::load(
&std::path::Path::new("/nix/store/ij3sz7nqg5l7v2dygdvzy3w6cj62bd6r-helm-0.9.0/lib/lxvst/helm.so"),
host.clone()
)?;
Ok(PluginKind::VST2 {
instance: loader.instance()?
})
}