From c277634b13117e721e43f34a09cafb93c725fa3f Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Wed, 9 Jan 2013 12:45:29 +0000 Subject: switched from single to double precision througout. closes #9 --- src/helper.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/helper.c') diff --git a/src/helper.c b/src/helper.c index 2a050e9..de33ffa 100644 --- a/src/helper.c +++ b/src/helper.c @@ -35,14 +35,14 @@ #define INDEX 1 #endif -int xtract_windowed(const float *data, const int N, const void *argv, float *result) +int xtract_windowed(const double *data, const int N, const void *argv, double *result) { int n; - const float *window; + const double *window; n = N; - window = (const float *)argv; + window = (const double *)argv; while(n--) result[n] = data[n] * window[n]; @@ -51,12 +51,12 @@ int xtract_windowed(const float *data, const int N, const void *argv, float *res } -int xtract_features_from_subframes(const float *data, const int N, const int feature, const void *argv, float *result) +int xtract_features_from_subframes(const double *data, const int N, const int feature, const void *argv, double *result) { - const float *frame1, + const double *frame1, *frame2; - float *result1, + double *result1, *result2; int n, rv; -- cgit v1.2.3