mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Export the standalone target for gain_gui_vizia
This commit is contained in:
@@ -8,10 +8,11 @@ license = "ISC"
|
||||
description = "A simple gain plugin with an vizia GUI"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
# The `lib` artifact is needed for the standalone target
|
||||
crate-type = ["cdylib", "lib"]
|
||||
|
||||
[dependencies]
|
||||
nih_plug = { path = "../../../", features = ["assert_process_allocs"] }
|
||||
nih_plug = { path = "../../../", features = ["assert_process_allocs", "standalone"] }
|
||||
nih_plug_vizia = { path = "../../../nih_plug_vizia" }
|
||||
|
||||
atomic_float = "0.1"
|
||||
|
||||
@@ -6,7 +6,7 @@ use std::sync::Arc;
|
||||
mod editor;
|
||||
|
||||
/// This is mostly identical to the gain example, minus some fluff, and with a GUI.
|
||||
struct Gain {
|
||||
pub struct Gain {
|
||||
params: Arc<GainParams>,
|
||||
editor_state: Arc<ViziaState>,
|
||||
|
||||
|
||||
7
plugins/examples/gain_gui_vizia/src/main.rs
Normal file
7
plugins/examples/gain_gui_vizia/src/main.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
use nih_plug::prelude::*;
|
||||
|
||||
use gain_gui_vizia::Gain;
|
||||
|
||||
fn main() {
|
||||
nih_export_standalone::<Gain>();
|
||||
}
|
||||
Reference in New Issue
Block a user