diff options
| author | Chris Kiefer <chrisk13fer@gmail.com> | 2012-09-27 13:14:57 +0100 |
|---|---|---|
| committer | Chris Kiefer <chrisk13fer@gmail.com> | 2012-09-27 13:14:57 +0100 |
| commit | fe572e3358a6ccaf5c6c66df3c3f56bf5110efb5 (patch) | |
| tree | 8ec69e3834e3369c0730589250c7e04d5d235aaf /ofxMaxim | |
| parent | 6802f1ada9b136cf9ed1afca6245cafd3c168847 (diff) | |
maxiTimestretch efficiency / stress test
Diffstat (limited to 'ofxMaxim')
| -rw-r--r-- | ofxMaxim/ofxMaxim/libs/maxiGrains.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
