test: fix number of queued samples

The number of queued samples is twice the delay.
This commit is contained in:
Wim Taymans 2020-02-14 10:52:21 +01:00
parent 6603fab405
commit 046f41c31c

View file

@ -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);
}
}