diff options
Diffstat (limited to 'src/synth/param.rs')
-rw-r--r-- | src/synth/param.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/param.rs b/src/synth/param.rs index b020574..602be1d 100644 --- a/src/synth/param.rs +++ b/src/synth/param.rs @@ -24,7 +24,7 @@ impl GeneratorFactory for ParamFactory { fn new(&self, params: &mut FactoryParameters) -> Result<GenBox, GenFactoryError> { Ok(Box::new(Param { name: params.get_req_param("name", 0)?.as_string()?, - default: params.get_param("default", 1, &ParamValue::Float(0.0)).as_f32()?, + default: params.get_param("default", 1, &mut ParamValue::Float(0.0)).as_f32()?, buf: SampleBuffer::new(1), })) } |