Skip to content

Commit bca2f3e

Browse files
committed
test: re-enable duplex resampler coverage
Update tests for all-consumed input and zero-frame sizing.
1 parent 1c5535f commit bca2f3e

2 files changed

Lines changed: 291 additions & 50 deletions

File tree

src/cubeb_resampler_internal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ template <typename T> class cubeb_resampler_speex_one_way : public processor {
351351
uint32_t input_needed_for_output(int32_t output_frame_count) const
352352
{
353353
assert(output_frame_count >= 0); // Check overflow
354+
if (output_frame_count == 0) {
355+
return 0;
356+
}
354357
int32_t unresampled_frames_left =
355358
samples_to_frames(resampling_in_buffer.length());
356359
float input_frames_needed_frac =

0 commit comments

Comments
 (0)