aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
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 /test
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 'test')
-rw-r--r--test/test_resampler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_resampler.cpp b/test/test_resampler.cpp
index fa699a8..e7f5fdd 100644
--- a/test/test_resampler.cpp
+++ b/test/test_resampler.cpp
@@ -717,7 +717,8 @@ TEST(cubeb, resampler_passthrough_duplex_callback_reordering)
output_seq_idx += BUF_BASE_SIZE;
- ASSERT_EQ(prebuffer_frames, static_cast<long>(ARRAY_LENGTH(input_buffer_prebuffer) / input_params.channels));
+ // prebuffer_frames will hold the frames used by the resampler.
+ ASSERT_EQ(prebuffer_frames, BUF_BASE_SIZE);
ASSERT_EQ(got, BUF_BASE_SIZE);
for (uint32_t i = 0; i < 300; i++) {