mirror of
https://github.com/romanz/amodem.git
synced 2026-04-20 13:16:42 +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
|
latency = 0.1
|
||||||
|
|
||||||
# sender config
|
# sender config
|
||||||
silence_start = 0.25
|
silence_start = 0.5
|
||||||
silence_stop = 0.25
|
silence_stop = 0.5
|
||||||
|
|
||||||
# receiver config
|
# receiver config
|
||||||
skip_start = 0.1
|
skip_start = 0.1
|
||||||
|
|||||||
@@ -49,13 +49,18 @@ def run(size, chan=None, df=0, success=True, cfg=None):
|
|||||||
assert rx_data == tx_data
|
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):
|
def small_size(request):
|
||||||
return request.param
|
return request.param
|
||||||
|
|
||||||
|
|
||||||
def test_small(small_size):
|
@pytest.fixture(params=list(config.bitrates.values()))
|
||||||
run(small_size, chan=lambda x: x)
|
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():
|
def test_flip():
|
||||||
|
|||||||
Reference in New Issue
Block a user