π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
test(BrickwallLimiter): add buffer_size=1 and high sample rates (96k, 192k)
Christopher Jacobye79243cf8b9e
diff --git a/tests/test_brickwall_limiter.py b/tests/test_brickwall_limiter.pyindex 340fc2d..8c60963 100644--- a/tests/test_brickwall_limiter.py+++ b/tests/test_brickwall_limiter.py@@ -23,7 +23,7 @@ def _sine_f32(@pytest.mark.parametrize("ceiling_db", [0.0, -0.1, -0.3, -1.0, -3.0, -6.0, -12.0, -20.0])[email protected]("sample_rate", [22050, 44100, 48000])[email protected]("sample_rate", [22050, 44100, 48000, 96000, 192000])@pytest.mark.parametrize("num_channels", [1, 2])def test_ceiling_enforced(ceiling_db: float, sample_rate: float, num_channels: int):"""Output sample peak must not exceed the ceiling."""@@ -89,8 +89,8 @@ def test_parameter_validation():limiter.ceiling_db = -40.0 # very quiet ceiling[email protected]("sample_rate", [22050, 44100, 48000])[email protected]("buffer_size", [128, 8192, 65536])[email protected]("sample_rate", [22050, 44100, 48000, 96000, 192000])[email protected]("buffer_size", [1, 128, 8192, 65536])@pytest.mark.parametrize("lookahead_ms", [1.0, 5.0, 10.0])def test_latency_compensation(sample_rate: float, buffer_size: int, lookahead_ms: float