From 73dacd72db97ff96dfdcba620802c543f15e8e39 Mon Sep 17 00:00:00 2001 From: glowcoil Date: Sun, 17 Mar 2024 16:03:24 -0500 Subject: [PATCH] remove Processor::set_param Remove the Processor::set_param method since all backends now exclusively send parameter changes to the processor via ParamChange events. --- examples/gain/src/lib.rs | 4 ---- src/process.rs | 2 -- 2 files changed, 6 deletions(-) diff --git a/examples/gain/src/lib.rs b/examples/gain/src/lib.rs index 56835aa..a75dc7b 100644 --- a/examples/gain/src/lib.rs +++ b/examples/gain/src/lib.rs @@ -108,10 +108,6 @@ pub struct GainProcessor { } impl Processor for GainProcessor { - fn set_param(&mut self, id: ParamId, value: ParamValue) { - self.params.set_param(id, value); - } - fn reset(&mut self) {} fn process(&mut self, buffers: Buffers, events: Events) { diff --git a/src/process.rs b/src/process.rs index 5a151b3..01ab962 100644 --- a/src/process.rs +++ b/src/process.rs @@ -1,7 +1,6 @@ use crate::buffers::Buffers; use crate::bus::Layout; use crate::events::Events; -use crate::params::{ParamId, ParamValue}; #[derive(Clone)] pub struct Config { @@ -11,7 +10,6 @@ pub struct Config { } pub trait Processor: Send + Sized + 'static { - fn set_param(&mut self, id: ParamId, value: ParamValue); fn reset(&mut self); fn process(&mut self, buffers: Buffers, events: Events); }