mirror of
https://github.com/romanz/amodem.git
synced 2026-02-05 16:26:22 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user