diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-02-14 10:52:21 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-02-14 10:52:21 +0100 |
commit | 046f41c31cdce62599b770d0d8f34defb91ba725 (patch) | |
tree | 2d155b7025ae6a6aea07b032c52fa8f844ea9dd3 | |
parent | 6603fab4055e219cd958f6ec1dacd70faf5c6e3c (diff) |
test: fix number of queued samples
The number of queued samples is twice the delay.
-rw-r--r-- | spa/plugins/audioconvert/test-resample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spa/plugins/audioconvert/test-resample.c b/spa/plugins/audioconvert/test-resample.c index 60231dbd..968b2f14 100644 --- a/spa/plugins/audioconvert/test-resample.c +++ b/spa/plugins/audioconvert/test-resample.c @@ -111,7 +111,7 @@ static void pull_blocks(struct resample *r, uint32_t size) in_len, pin_len, out_len, pout_len, resample_in_len(r, size)); - spa_assert(in_len == pin_len + resample_delay(r)); + spa_assert(in_len == pin_len + (resample_delay(r) * 2)); spa_assert(out_len == pout_len); } } |