src/temporal/resample.c: cast to SRC native type
authorPaul Brossier <piem@piem.org>
Thu, 17 Sep 2009 05:06:11 +0000 (07:06 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 17 Sep 2009 05:06:11 +0000 (07:06 +0200)
src/temporal/resample.c

index b67b264e7e1e11981cb6565f3af2dd1f5bf562ef..093beff5b20ad670b0f3e5e89399f5c038050a14 100644 (file)
@@ -56,8 +56,8 @@ uint_t aubio_resampler_process(aubio_resampler_t *s,
        for (i = 0 ; i< input->channels; i++) 
        {
                /* make SRC_PROC data point to input outputs */
-               s->proc->data_in = input->data[i];
-               s->proc->data_out= output->data[i];
+               s->proc->data_in = (float *)input->data[i];
+               s->proc->data_out= (float *)output->data[i];
                /* do resampling */
                src_process (s->stat, s->proc) ;
        }