aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_resampler_internal.h
diff options
context:
space:
mode:
authorAlex Chronopoulos <[email protected]>2016-06-01 18:42:08 +0300
committerAlex Chronopoulos <[email protected]>2016-06-01 18:42:08 +0300
commit335e238189c443f861791d02401e5bb98620387e (patch)
treeb5ff5f5fcb98bf098a9008cbdfa342182d808d85 /src/cubeb_resampler_internal.h
parent520761064631ecf9dc2b20a476cc4025953e9804 (diff)
downloadcubeb-335e238189c443f861791d02401e5bb98620387e.tar.gz
cubeb-335e238189c443f861791d02401e5bb98620387e.zip
Resampler: correct output for input frames calculation
Diffstat (limited to 'src/cubeb_resampler_internal.h')
-rw-r--r--src/cubeb_resampler_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_resampler_internal.h b/src/cubeb_resampler_internal.h
index 8f8d6dc..e22b610 100644
--- a/src/cubeb_resampler_internal.h
+++ b/src/cubeb_resampler_internal.h
@@ -215,7 +215,7 @@ public:
size_t output_for_input(uint32_t input_frames)
{
- return ceilf(input_frames * resampling_ratio) + 1
+ return ceilf(input_frames / resampling_ratio)
- resampling_in_buffer.length() / channels;
}