From fe572e3358a6ccaf5c6c66df3c3f56bf5110efb5 Mon Sep 17 00:00:00 2001 From: Chris Kiefer Date: Thu, 27 Sep 2012 13:14:57 +0100 Subject: maxiTimestretch efficiency / stress test --- ofxMaxim/ofxMaxim/libs/maxiGrains.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ofxMaxim') diff --git a/ofxMaxim/ofxMaxim/libs/maxiGrains.h b/ofxMaxim/ofxMaxim/libs/maxiGrains.h index c4b2ccc..7569937 100644 --- a/ofxMaxim/ofxMaxim/libs/maxiGrains.h +++ b/ofxMaxim/ofxMaxim/libs/maxiGrains.h @@ -183,7 +183,7 @@ public: #if defined(__APPLE_CC__) && defined(MAXIGRAINFAST) //premake the grain using fast vector functions, and quadratic interpolation double *sourceData = (double*)malloc(sampleDur * sizeof(double)); - short* buffer = (short *)sample->myData; + short* buffer = (short *)sample->temp; //convert sample to double data vDSP_vflt16D(buffer + sampleStartPos, 1, sourceData, 1, min(sampleDur, sample->length - sampleStartPos)); //todo: wraping code -- cgit v1.3