From 9c860c93a4575ed2102747b8cbd244cc79c3fa3a Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Sat, 30 Sep 2023 15:55:58 -0700 Subject: [PATCH] impl Seek for Downmix --- src/downmix.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/downmix.rs b/src/downmix.rs index 2710dc5..3933625 100644 --- a/src/downmix.rs +++ b/src/downmix.rs @@ -1,4 +1,4 @@ -use crate::{Frame, Sample, Signal}; +use crate::{Frame, Sample, Seek, Signal}; /// Sums all channels together /// @@ -37,7 +37,14 @@ where } } -// TODO: impl Seek +impl Seek for Downmix +where + T::Frame: Frame, +{ + fn seek(&mut self, seconds: f32) { + self.0.seek(seconds); + } +} #[cfg(test)] mod tests {