Mercurial > hg > qm-vamp-plugins
comparison plugins/ChromagramPlugin.cpp @ 178:f96ea0e4b475
Fix compiler warnings with -Wall -Wextra
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 28 Sep 2015 12:33:17 +0100 |
parents | dcf5800f0f00 |
children | 28850f3cf65b |
comparison
equal
deleted
inserted
replaced
177:a83a81ed1303 | 178:f96ea0e4b475 |
---|---|
328 return list; | 328 return list; |
329 } | 329 } |
330 | 330 |
331 ChromagramPlugin::FeatureSet | 331 ChromagramPlugin::FeatureSet |
332 ChromagramPlugin::process(const float *const *inputBuffers, | 332 ChromagramPlugin::process(const float *const *inputBuffers, |
333 Vamp::RealTime timestamp) | 333 Vamp::RealTime ) |
334 { | 334 { |
335 if (!m_chromagram) { | 335 if (!m_chromagram) { |
336 cerr << "ERROR: ChromagramPlugin::process: " | 336 cerr << "ERROR: ChromagramPlugin::process: " |
337 << "Chromagram has not been initialised" | 337 << "Chromagram has not been initialised" |
338 << endl; | 338 << endl; |
369 delete[] real; | 369 delete[] real; |
370 delete[] imag; | 370 delete[] imag; |
371 | 371 |
372 Feature feature; | 372 Feature feature; |
373 feature.hasTimestamp = false; | 373 feature.hasTimestamp = false; |
374 for (size_t i = 0; i < m_config.BPO; ++i) { | 374 for (int i = 0; i < m_config.BPO; ++i) { |
375 double value = output[i]; | 375 double value = output[i]; |
376 /* | 376 /* |
377 if (printThis) { | 377 if (printThis) { |
378 cerr << value << " "; | 378 cerr << value << " "; |
379 } | 379 } |
400 { | 400 { |
401 Feature feature; | 401 Feature feature; |
402 feature.hasTimestamp = true; | 402 feature.hasTimestamp = true; |
403 feature.timestamp = Vamp::RealTime::zeroTime; | 403 feature.timestamp = Vamp::RealTime::zeroTime; |
404 | 404 |
405 for (size_t i = 0; i < m_config.BPO; ++i) { | 405 for (int i = 0; i < m_config.BPO; ++i) { |
406 double v = m_binsums[i]; | 406 double v = m_binsums[i]; |
407 if (m_count > 0) v /= m_count; | 407 if (m_count > 0) v /= m_count; |
408 feature.values.push_back(v); | 408 feature.values.push_back(v); |
409 } | 409 } |
410 feature.label = "Chromagram bin means"; | 410 feature.label = "Chromagram bin means"; |