diff options
Diffstat (limited to 'src/synth/saw.rs')
-rw-r--r-- | src/synth/saw.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/saw.rs b/src/synth/saw.rs index 054b3c8..3e30ca6 100644 --- a/src/synth/saw.rs +++ b/src/synth/saw.rs @@ -31,7 +31,7 @@ impl GeneratorFactory for SawFactory { fn new(&self, params: &mut FactoryParameters) -> Result<GenBox, GenFactoryError> { Ok(Box::new(Saw { freq: params.remove_param("freq", 0)?.into_gen()?, - phase: params.get_param("phase", 1, &ParamValue::Float(0.0)).as_f32()?, + phase: params.get_param("phase", 1, &mut ParamValue::Float(0.0)).as_f32()?, buf: SampleBuffer::new(params.env.default_buffer_size), })) } |