Increase leading and trailing silence defaults

Leading silence should help ignore initial A/D artifacts.
Trailing silence fixes buffering issues (e.g. #49).
This commit is contained in:
Roman Zeyde
2021-06-19 13:55:15 +03:00
parent 9352088389
commit 21fe42e68d
2 changed files with 10 additions and 5 deletions

View File

@@ -14,8 +14,8 @@ class Configuration:
latency = 0.1
# sender config
silence_start = 0.25
silence_stop = 0.25
silence_start = 0.5
silence_stop = 0.5
# receiver config
skip_start = 0.1

View File

@@ -49,13 +49,18 @@ def run(size, chan=None, df=0, success=True, cfg=None):
assert rx_data == tx_data
@pytest.fixture(params=[0, 1, 3, 10, 42, 123])
@pytest.fixture(params=[0, 1, 3, 10, 16, 17, 42, 123])
def small_size(request):
return request.param
def test_small(small_size):
run(small_size, chan=lambda x: x)
@pytest.fixture(params=list(config.bitrates.values()))
def all_configs(request):
return request.param
def test_small(small_size, all_configs):
run(small_size, chan=lambda x: x, cfg=all_configs)
def test_flip():