Skip to content

Commit

Permalink
impl Seek for Downmix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Sep 30, 2023
1 parent fca4d68 commit 9c860c9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/downmix.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{Frame, Sample, Signal};
use crate::{Frame, Sample, Seek, Signal};

/// Sums all channels together
///
Expand Down Expand Up @@ -37,7 +37,14 @@ where
}
}

// TODO: impl Seek
impl<T: Seek + Signal + ?Sized> Seek for Downmix<T>
where
T::Frame: Frame,
{
fn seek(&mut self, seconds: f32) {
self.0.seek(seconds);
}
}

#[cfg(test)]
mod tests {
Expand Down

0 comments on commit 9c860c9

Please sign in to comment.