mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
13 lines
479 B
Rust
13 lines
479 B
Rust
use crate::prelude::*;
|
|
use super::*;
|
|
|
|
fn set_vst_plugin (host: &Arc<Mutex<Plugin>>, 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()?
|
|
})
|
|
}
|
|
//"file:///nix/store/ij3sz7nqg5l7v2dygdvzy3w6cj62bd6r-helm-0.9.0/lib/lxvst/helm.so"
|