From 7f86524dd021c5905df111d1254004576fd872f0 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Tue, 1 Jan 2008 16:17:44 +0000 Subject: - Improvements to SWIG bindings generation script - Fixed omission in xtract_bark_coefficients that was causing the output to be complete b/s! This fixed bark_coeffs and loudness feature which depends on it - Changes to descriptor API: added is_delta and id. id corresponds to value in xtract_features_ enum and is useful for programmatic conversions between id and name string. --- src/vector.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vector.c') diff --git a/src/vector.c b/src/vector.c index d3fdd67..0ffd8ae 100644 --- a/src/vector.c +++ b/src/vector.c @@ -368,6 +368,7 @@ int xtract_bark_coefficients(const float *data, const int N, const void *argv, f limits = (int *)argv; for(band = 0; band < XTRACT_BARK_BANDS - 1; band++){ + result[band] = 0.f; for(n = limits[band]; n < limits[band + 1]; n++) result[band] += data[n]; } -- cgit v1.2.3