diff --git a/src/interpolate.rs b/src/interpolate.rs index 2848defd..517ca82a 100644 --- a/src/interpolate.rs +++ b/src/interpolate.rs @@ -28,11 +28,13 @@ where } /// Interpolator that just rounds off any values to the previous value from the source +#[derive(Clone)] pub struct Floor { left: F, } /// Interpolator that interpolates linearly between the previous value and the next value +#[derive(Clone)] pub struct Linear { left: F, right: F, @@ -42,6 +44,7 @@ pub struct Linear { /// /// Generally accepted as one of the better sample rate converters, although it uses significantly /// more computation. +#[derive(Clone)] pub struct Sinc { frames: ring_buffer::Fixed, idx: usize,