aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_resampler.cpp
diff options
context:
space:
mode:
authorAlex Chronopoulos <[email protected]>2017-02-17 18:00:32 +0200
committerPaul Adenot <[email protected]>2017-02-17 17:00:32 +0100
commit8977c13bf0dab9a7716501ae92ca5945fe4e1dae (patch)
tree2f653061f0ffd55bb639ed1f6b6a65a6b4791bf4 /src/cubeb_resampler.cpp
parent581d4bc8b16e5f81fe299e2ab9897ec48da8610a (diff)
downloadcubeb-8977c13bf0dab9a7716501ae92ca5945fe4e1dae.tar.gz
cubeb-8977c13bf0dab9a7716501ae92ca5945fe4e1dae.zip
audiounit: additional fix for drift cases (#235)
* audiounit: additional fix for drift cases * test_resampler: change expected frames to the frames used
Diffstat (limited to 'src/cubeb_resampler.cpp')
-rw-r--r--src/cubeb_resampler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cubeb_resampler.cpp b/src/cubeb_resampler.cpp
index 41c03e6..65dd0a8 100644
--- a/src/cubeb_resampler.cpp
+++ b/src/cubeb_resampler.cpp
@@ -72,6 +72,7 @@ long passthrough_resampler<T>::fill(void * input_buffer, long * input_frames_cou
if (input_buffer) {
internal_input_buffer.pop(nullptr, frames_to_samples(output_frames));
+ *input_frames_count = output_frames;
}
return rv;