micknoise / Maximilian

C++ Audio and Music DSP Library
http://www.maximilian.strangeloop.co.uk
MIT License
1.58k stars 279 forks source link

MaximExtractorExample compile error on RasPi #98

Closed okyeron closed 1 year ago

okyeron commented 3 years ago

I am having a go a modifying the OSX/OF0.8.4MaximExtractorExample to work with OF 0.11.0 and RasPi

Getting the following compile error with regards to maxiMFCC.h

inlined from ‘virtual void ofApp::setup()’ at /home/pi/openFrameworks/addons/ofxMaxim/MaximExtractorExample/src/ofApp.cpp:65:15:
/home/pi/openFrameworks/addons/ofxMaxim/MaximExtractorExample/ofxMaxim/libs/maxiMFCC.h:140:27: warning: argument 1 value ‘4294959104’ exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
   melFilters = (T*) malloc(sizeof(T) * numFilters * numValidBins);
                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

OF 0.11.0 RasPi 4b with 5.4.83-v7l+ gcc (Raspbian 8.3.0-6+rpi1) 8.3.0

Otherwise - is there a more recent Example that shows the audio analysis functions?

okyeron commented 3 years ago

FWIW - I was able to get compiled and running by doing

melFilters = (T*) malloc(sizeof(double) * numFilters * numValidBins);

based on the filtPos bit on line 129

micknoise commented 3 years ago

That will work if you are using doubles.