# HG changeset patch # User Chris Cannam # Date 1425477168 0 # Node ID 16dc7307d43a51709d4b7f9747754833f851a1a7 # Parent 843f67be0ed9dbac8a1957f64570a3df08ea4fc3 More build fixes diff -r 843f67be0ed9 -r 16dc7307d43a base/Debug.h --- a/base/Debug.h Wed Mar 04 12:30:41 2015 +0000 +++ b/base/Debug.h Wed Mar 04 13:52:48 2015 +0000 @@ -19,7 +19,7 @@ #include #include -#include +#include "RealTime.h" #include #include @@ -41,6 +41,11 @@ #define SVDEBUG getSVDebug() +inline QDebug &operator<<(QDebug &d, const RealTime &rt) { + d << rt.toString(); + return d; +} + inline QDebug &operator<<(QDebug &d, const Vamp::RealTime &rt) { d << rt.toString(); return d; diff -r 843f67be0ed9 -r 16dc7307d43a base/Profiler.cpp --- a/base/Profiler.cpp Wed Mar 04 12:30:41 2015 +0000 +++ b/base/Profiler.cpp Wed Mar 04 13:52:48 2015 +0000 @@ -105,7 +105,7 @@ fprintf(stderr, "\tCPU: \t%.9g ms/call \t[%d ms total]\n", (((double)pp.second.first * 1000.0 / (double)pp.first) / CLOCKS_PER_SEC), - int((pp.second.first * 1000.0) / CLOCKS_PER_SEC)); + int((double(pp.second.first) * 1000.0) / CLOCKS_PER_SEC)); fprintf(stderr, "\tReal: \t%s ms \t[%s ms total]\n", ((pp.second.second / pp.first) * 1000).toString().c_str(), @@ -118,7 +118,7 @@ fprintf(stderr, "\tWorst:\t%s ms/call \t[%d ms CPU]\n", (wc.second * 1000).toString().c_str(), - int((wc.first * 1000.0) / CLOCKS_PER_SEC)); + int((double(wc.first) * 1000.0) / CLOCKS_PER_SEC)); } typedef std::multimap TimeRMap; diff -r 843f67be0ed9 -r 16dc7307d43a data/model/WaveFileModel.cpp --- a/data/model/WaveFileModel.cpp Wed Mar 04 12:30:41 2015 +0000 +++ b/data/model/WaveFileModel.cpp Wed Mar 04 13:52:48 2015 +0000 @@ -733,7 +733,8 @@ means[rangeIndex] += fabsf(sample); } } - + + //!!! this looks like a ludicrous way to do synchronisation QMutexLocker locker(&m_model.m_mutex); for (int ct = 0; ct < 2; ++ct) {