changeset 1556:7b4d56b01440

Debug
author Chris Cannam
date Thu, 18 Oct 2018 13:09:09 +0100
parents 616d3e8a250b
children d93e34684da7
files data/model/AggregateWaveModel.cpp
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }