From 4502eaec3a2817cd799cc42d24e5be8d4cbb8c9d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 5 Apr 2023 18:16:58 +0200 Subject: [PATCH] Change wrapped smoothing style to be a static ref Instead of having to wrap this in an `Arc`. This makes the interface a bit nicer to use. --- src/params/smoothing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/params/smoothing.rs b/src/params/smoothing.rs index fda4e511..33f4c428 100644 --- a/src/params/smoothing.rs +++ b/src/params/smoothing.rs @@ -14,7 +14,7 @@ pub enum SmoothingStyle { /// the oversampling amount, where `1.0` means no oversampling. This value can change at /// runtime, and it effectively scales the sample rate when computing new smoothing coefficients /// when the parameter's value changes. - OversamplingAware(Arc, Arc), + OversamplingAware(Arc, &'static SmoothingStyle), /// No smoothing is applied. The parameter's `value` field contains the latest sample value /// available for the parameters.