From 07e7cd2b5a0831d0276bddbe4c44f9e97423c3a3 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Tue, 9 Dec 2014 23:25:39 +0000 Subject: [PATCH] UT mod for low bit rate modes git-svn-id: https://svn.code.sf.net/p/freetel/code@1958 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/unittest/tquant.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/codec2-dev/unittest/tquant.c b/codec2-dev/unittest/tquant.c index 6ad271d8..2199272b 100644 --- a/codec2-dev/unittest/tquant.c +++ b/codec2-dev/unittest/tquant.c @@ -73,8 +73,8 @@ int test_energy_quant(int levels, float max_error_dB) { for(i=0; i max_error_dB) { @@ -173,7 +173,7 @@ int test_Wo_quant() { f = fopen("quant_pitch.txt","wt"); for(Wo=0.9*(TWO_PI/P_MAX); Wo<=1.1*(TWO_PI/P_MIN); Wo += 0.001) { - index = encode_Wo(Wo); + index = encode_Wo(Wo, WO_BITS); fprintf(f, "%f %d\n", Wo, index); } @@ -184,8 +184,8 @@ int test_Wo_quant() { for(c=0; c (step_size/2.0)) { printf("error: %f step_size/2: %f\n", error, step_size/2.0); -- 2.25.1