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.
This commit is contained in:
parent
8a7100ac3e
commit
4502eaec3a
|
@ -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<AtomicF32>, Arc<SmoothingStyle>),
|
||||
OversamplingAware(Arc<AtomicF32>, &'static SmoothingStyle),
|
||||
|
||||
/// No smoothing is applied. The parameter's `value` field contains the latest sample value
|
||||
/// available for the parameters.
|
||||
|
|
Loading…
Reference in a new issue