Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ impl<R: io::Read> ChunksReader<R> {
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
Expand Down Expand Up @@ -861,6 +866,11 @@ impl<R> WavReader<R>
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
Expand Down