From 6f8a15bcfdf2893f57ad9996d8a08c7271da37f7 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Thu, 23 Apr 2020 19:54:47 +0300 Subject: [PATCH] Tools: Test: Fix mistake with multi-channel gain result print This fixes a messy looking print line in the test output. Signed-off-by: Seppo Ingalsuo --- tools/test/audio/std_utils/g_test_measure.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test/audio/std_utils/g_test_measure.m b/tools/test/audio/std_utils/g_test_measure.m index db09bfdc5..96a7e7dd6 100644 --- a/tools/test/audio/std_utils/g_test_measure.m +++ b/tools/test/audio/std_utils/g_test_measure.m @@ -38,7 +38,7 @@ level_in = test.a_db; level_out = level_dbfs(y); test.g_db = level_out - level_in + test.att_rec_db; for i = 1:length(test.g_db) - fprintf('Gain = %6.3f dB (expect %6.3f dB)\n', test.g_db(i), test.g_db_expect); + fprintf('Gain = %6.3f dB (expect %6.3f dB)\n', test.g_db(i), test.g_db_expect(i)); end %% Check pass/fail