1
0
Fork 0

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:
Robbert van der Helm 2023-04-05 18:16:58 +02:00
parent 8a7100ac3e
commit 4502eaec3a

View file

@ -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.