Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `DitherAlgorithm` enum for algorithm selection
- `Source::dither()` function for applying dithering
- Added `64bit` feature to opt-in to 64-bit sample precision (`f64`).
- Added `SampleRateConverter::inner` to get underlying iterator by ref.

### Fixed
- docs.rs will now document all features, including those that are optional.
Expand Down
8 changes: 7 additions & 1 deletion src/conversions/sample_rate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,18 @@ where
self.input
}

/// get mutable access to the iterator
/// Get mutable access to the iterator
#[inline]
pub fn inner_mut(&mut self) -> &mut I {
&mut self.input
}

/// Get a reference to the underlying iterator
#[inline]
pub fn inner(&self) -> &I {
&self.input
}

fn next_input_span(&mut self) {
self.current_span_pos_in_chunk += 1;

Expand Down