shithub: aubio

Download patch

ref: e7b3629c5ee87107e053c83201fd5cd6850d9976
parent: 1e37adec4dc504c99185e178b4a16934e53b6c55
author: Paul Brossier <piem@piem.org>
date: Thu Sep 17 03:06:11 EDT 2009

src/temporal/resample.c: cast to SRC native type

--- a/src/temporal/resample.c
+++ b/src/temporal/resample.c
@@ -56,8 +56,8 @@
 	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) ;
 	}