From 5b4918b07948e05049fcb284aecca082e121b55f Mon Sep 17 00:00:00 2001 From: Delma Date: Sat, 17 Nov 2018 09:33:29 +0200 Subject: [PATCH] Derive Clone for interpolators --- src/interpolate.rs | 3 +++ 1 file changed, 3 insertions(+) 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,