Skip to content

Commit ba1a8f6

Browse files
authored
Merge pull request #114 from casey/dont-return-input-len
Don't return input length from process_all_into_buffer
2 parents cf4f679 + 7eb71fc commit ba1a8f6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ where
180180
///
181181
/// The `active_channels_mask` parameter has the same meaning as in
182182
/// [process_into_buffer](Resampler::process_into_buffer).
183+
///
184+
/// Returns the lengths of the original input and the resampled output.
183185
fn process_all_into_buffer<'a>(
184186
&mut self,
185187
buffer_in: &dyn Adapter<'a, T>,
@@ -251,6 +253,10 @@ where
251253
/// Calculate the minimal length of the output buffer
252254
/// needed to process a clip of length `input_len` using the
253255
/// [process_all_into_buffer](Resampler::process_all_into_buffer) method.
256+
///
257+
/// Includes additional space needed by the resampler implementation. For
258+
/// the length of resampled output, see the return value of
259+
/// [process_all_into_buffer](Resampler::process_all_into_buffer).
254260
fn process_all_needed_output_len(&mut self, input_len: usize) -> usize {
255261
let delay_frames = self.output_delay();
256262
let output_frames_next = self.output_frames_next();

0 commit comments

Comments
 (0)