# HG changeset patch # User Chris Cannam # Date 1539864549 -3600 # Node ID 7b4d56b014400ec02f89ec05990be57d32a9faac # Parent 616d3e8a250b0524a0f59f7c0ff7a89ef9ae3eb1 Debug diff -r 616d3e8a250b -r 7b4d56b01440 data/model/AggregateWaveModel.cpp --- a/data/model/AggregateWaveModel.cpp Fri Oct 12 11:00:14 2018 +0100 +++ b/data/model/AggregateWaveModel.cpp Thu Oct 18 13:09:09 2018 +0100 @@ -21,6 +21,8 @@ using namespace std; +//#define DEBUG_AGGREGATE_WAVE_FILE_MODEL 1 + PowerOfSqrtTwoZoomConstraint AggregateWaveModel::m_zoomConstraint; @@ -80,11 +82,19 @@ for (ChannelSpecList::const_iterator i = m_components.begin(); i != m_components.end(); ++i) { int completionHere = 100; - if (!i->model->isReady(&completionHere)) ready = false; + if (!i->model->isReady(&completionHere)) { + ready = false; + } if (completion && completionHere < *completion) { *completion = completionHere; } } + +#ifdef DEBUG_AGGREGATE_WAVE_FILE_MODEL + SVDEBUG << "AggregateWaveModel(" << objectName() + << ")::isReady: returning " << ready << endl; +#endif + return ready; }