diff --git a/src/read.rs b/src/read.rs index 7024947..5e086d4 100644 --- a/src/read.rs +++ b/src/read.rs @@ -678,6 +678,11 @@ impl ChunksReader { self.reader } + /// Lend out the raw reader + pub fn inner(&mut self) -> &mut R { + &mut self.reader + } + /// Seek to the given time within the file. /// /// The given time is measured in number of samples (independent of the @@ -861,6 +866,11 @@ impl WavReader self.reader.into_inner() } + /// Grants mutable access to the underlying reader. + pub fn inner(&mut self) -> &mut R { + self.reader.inner() + } + /// Seek to the given time within the file. /// /// The given time is measured in number of samples (independent of the