Skip to content

Commit

Permalink
remove Processor::set_param
Browse files Browse the repository at this point in the history
Remove the Processor::set_param method since all backends now
exclusively send parameter changes to the processor via ParamChange
events.
  • Loading branch information
micahrj committed Mar 17, 2024
1 parent e02da1b commit 73dacd7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions examples/gain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions src/process.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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);
}

0 comments on commit 73dacd7

Please sign in to comment.