roc-go icon indicating copy to clipboard operation
roc-go copied to clipboard

Add end-to-end test with resampler

Open gavv opened this issue 1 year ago • 0 comments

TestEnd2End_Default is a simple integration test that writes samples to sender, reads them from receiver, and verifies the received stream.

TestEnd2End_Default disables resampler, so that the received stream is only minimally modified, as described in #101.

We should add a new test TestEnd2End_Resampler, that enables resampling on receiver by setting ReceiverConfig.ResamplerBackend and ResamplerProfile.

Since resampler modifies stream in a very complicated way, the acceptance criteria for this test should much more relaxed compared to #101. We can just wait until we accumulate 10'000 non-zero samples, ignoring zeros, and without checking actual sample values. However we still need to use tickers similar to described in #101.

See also: https://roc-streaming.org/toolkit/docs/internals/fe_resampler.html

gavv avatar May 29 '23 20:05 gavv