From b2e706f39a1a65aa55e58f33ac7636e5a4f2f992 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 22 Oct 2009 03:23:04 +0200 Subject: [PATCH] tests/src/test-mfcc.c: simplify using cvec_set --- tests/src/test-mfcc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/src/test-mfcc.c b/tests/src/test-mfcc.c index 44882f69..a41f64bd 100644 --- a/tests/src/test-mfcc.c +++ b/tests/src/test-mfcc.c @@ -11,14 +11,11 @@ main (void) cvec_t *in = new_cvec (win_s, channels); /* input buffer */ fvec_t *out = new_fvec (n_coefs, channels); /* input buffer */ smpl_t samplerate = 16000.; - uint_t i = 0; /* allocate fft and other memory space */ aubio_mfcc_t *o = new_aubio_mfcc (win_s, n_filters, n_coefs, samplerate); - for (i = 0; i < in->length; i ++) { - in->norm[0][i] = 1.; - } + cvec_set (in, 1.); aubio_mfcc_do (o, in, out); fvec_print (out); -- 2.26.2