diff options
| author | Comment <tim@gray.(none)> | 2013-11-05 22:33:22 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-11-05 22:33:22 +0000 |
| commit | 18a77356a424511e7ae1865d1554d20b4b5c51fb (patch) | |
| tree | 15209fc88f1b8fd4fe2ced01ac804772c8f0a43b /rotord/src/nodes_audio_analysis.cpp | |
| parent | 9462492cae4d94157538f353d67f2f6daaa45259 (diff) | |
clean up compiler warnings
Diffstat (limited to 'rotord/src/nodes_audio_analysis.cpp')
| -rw-r--r-- | rotord/src/nodes_audio_analysis.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rotord/src/nodes_audio_analysis.cpp b/rotord/src/nodes_audio_analysis.cpp index a2a9c63..6ec1188 100644 --- a/rotord/src/nodes_audio_analysis.cpp +++ b/rotord/src/nodes_audio_analysis.cpp @@ -122,7 +122,7 @@ namespace Rotor{ cerr<<analysers["segmenter"].features.size()<<" segments"<<endl; cerr<<analysers["tempo"].features.size()<<" tempo features"<<endl; cerr<<analysers["intensity"].features.size()<<" intensity features"<<endl; - int i=0; + uint32_t i=0; float min_tempo=9999999.0f; float min_intensity=9999999.0f; float max_tempo=0.0f; @@ -178,11 +178,10 @@ namespace Rotor{ } //sort and convert to features std::sort(totals.begin(),totals.end(),sortsegments); - for (int i=0;i<totals.size();i++){ + for (i=0;i<totals.size();i++){ vampHost::feature f; f.values.push_back((float)i); features[times[totals[i].first]]=f; - } - return true; + } } }
\ No newline at end of file |
