From 3c86eb11489139710a8405acc9fa5105b3c04d3a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 4 Sep 2005 15:46:32 +0000 Subject: [PATCH] fix resample for 64bit (thanks to Lachlan Davison) --- src/resample.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/resample.c b/src/resample.c index 04edabff..e5a495b4 100644 --- a/src/resample.c +++ b/src/resample.c @@ -25,7 +25,7 @@ #include "resample.h" struct _aubio_resampler_t { - SRC_DATA *proc; + SRC_DATA *proc; SRC_STATE *stat; float ratio; uint_t type; @@ -33,8 +33,8 @@ struct _aubio_resampler_t { aubio_resampler_t * new_aubio_resampler(float ratio, uint_t type) { aubio_resampler_t * s = AUBIO_NEW(aubio_resampler_t); - sint_t error = 0; - s->stat = src_new (type, 1, (sint_t*)error) ; /* only one channel */ + int error = 0; + s->stat = src_new (type, 1, &error) ; /* only one channel */ s->proc = AUBIO_NEW(SRC_DATA); if (error) AUBIO_ERR("%s\n",src_strerror(error)); s->ratio = ratio; -- 2.11.0