From 116bf8e1eb09bd4cc2445d655714b0291be588af Mon Sep 17 00:00:00 2001 From: drowe67 Date: Thu, 12 Jan 2017 01:11:54 +0000 Subject: [PATCH] cleaned up, close to what we need for a Codec 2 mode git-svn-id: https://svn.code.sf.net/p/freetel/code@2959 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/unittest/tnewamp1.c | 80 ++++++---------------------------- 1 file changed, 14 insertions(+), 66 deletions(-) diff --git a/codec2-dev/unittest/tnewamp1.c b/codec2-dev/unittest/tnewamp1.c index 1baa3ec5..b385cf4c 100644 --- a/codec2-dev/unittest/tnewamp1.c +++ b/codec2-dev/unittest/tnewamp1.c @@ -173,55 +173,20 @@ int main(int argc, char *argv[]) { for(k=0; k= M) { - /* - float *left_vec = &rate_K_surface_[f-M][0]; - float *right_vec = &rate_K_surface_[f][0]; - newamp1_interpolate(&interpolated_surface_[f-M][0], left_vec, right_vec, K); - */ - - Wo_left = model_octave_[f-M][0]; - voicing_left = voicing[f-M]; newamp1_indexes_to_model(model__, (COMP*)HH, @@ -235,34 +200,17 @@ int main(int argc, char *argv[]) { phase_fft_inv_cfg, &indexes[f][0]); - /* interpolate 25Hz v and Wo back to 100Hz */ - - float aWo_[M]; - int avoicing_[M], aL_[M], m; - float Wo1 = model_octave_[f-M][0]; - float Wo2 = model_octave_[f][0]; - interp_Wo_v(aWo_, aL_, avoicing_, Wo1, Wo2, voicing[f-M], voicing[f]); - for(i=f-M, m=0; i