From 044d0b208d7fcc7bcafba5b4cac327d3f8d16794 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Mon, 7 Nov 2022 19:54:02 +0200 Subject: [PATCH] Tools: Test: Audio: In SRC THD+N test apply standard low pass This patch applies for conversions where Nyquist rate allows a 20 kHz low-pass filter as specified in AES17 standard (test.fu). The sweep test is set no higher than 20 kHz (test.f_end). Signed-off-by: Seppo Ingalsuo --- tools/test/audio/src_test.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test/audio/src_test.m b/tools/test/audio/src_test.m index e97663faf..4e275bc56 100644 --- a/tools/test/audio/src_test.m +++ b/tools/test/audio/src_test.m @@ -262,8 +262,8 @@ end prm = src_param(t.fs1, t.fs2, test.coef_bits); test.f_start = 20; -test.f_end = prm.c_pb*min(t.fs1, t.fs2); -test.fu = prm.c_pb * t.fs2; +test.f_end = min(prm.c_pb * min(t.fs1, t.fs2), 20e3); +test.fu = min(prm.c_pb * t.fs2, 20e3); % AES17 5.2.5 standard low pass as 20 kHz %% Create input file test = thdnf_test_input(test);