From bc196d5527d0bccff6adbf6322c407612fb9a1e4 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Sun, 26 Jun 2022 23:21:32 +0200 Subject: [PATCH] Minor fixes for nih-plug --- src/dsp/mod.rs | 1 + src/nodes/node_exec.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/dsp/mod.rs b/src/dsp/mod.rs index 3213e7d..5cb35ca 100644 --- a/src/dsp/mod.rs +++ b/src/dsp/mod.rs @@ -242,6 +242,7 @@ impl crate::monitor::MonitorSource for &ProcBuf { } unsafe impl Send for ProcBuf {} +unsafe impl Sync for ProcBuf {} //unsafe impl Sync for HexoSynthShared {} impl ProcBuf { diff --git a/src/nodes/node_exec.rs b/src/nodes/node_exec.rs index ec1b31b..bffc2aa 100644 --- a/src/nodes/node_exec.rs +++ b/src/nodes/node_exec.rs @@ -216,6 +216,10 @@ impl NodeExecutor { } } + pub fn no_logging(&mut self) { + self.dsp_log_init = true; + } + #[inline] pub fn process_graph_updates(&mut self) { while let Some(upd) = self.shared.graph_update_con.pop() {