From 81e0333e19d2c26818d7da4b525f92a1f19c48c3 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Thu, 3 Jan 2019 19:08:51 +0200 Subject: [PATCH] Testbench: Add S16_LE format test for SRC Signed-off-by: Seppo Ingalsuo --- tools/test/audio/src_test_top.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/test/audio/src_test_top.m b/tools/test/audio/src_test_top.m index a0bf82624..48f14be20 100644 --- a/tools/test/audio/src_test_top.m +++ b/tools/test/audio/src_test_top.m @@ -28,6 +28,11 @@ % Author: Seppo Ingalsuo % +[n_fail, n_pass] = src_test(16, 16); +if n_fail > 0 || n_pass < 1 + fprintf('Error: SRC test with 16 bits data failed.\n'); + quit(1) +end [n_fail, n_pass] = src_test(24, 24); if n_fail > 0 || n_pass < 1 fprintf('Error: SRC test with 24 bits data failed.\n'); @@ -39,4 +44,4 @@ if n_fail > 0 || n_pass < 1 quit(1) end -fprintf('Success: SRC test with 24 and 32 bits data passed.\n'); +fprintf('Success: SRC test with 16, 24 and 32 bits data passed.\n');