changeset 180:bd1260261412

...
author Chris Cannam
date Thu, 05 Oct 2006 15:39:23 +0000
parents 0ed2b2e26b44
children 9c652f2c39b1
files data/model/WaveFileModel.cpp data/model/WritableWaveFileModel.cpp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/WaveFileModel.cpp	Thu Oct 05 11:03:06 2006 +0000
+++ b/data/model/WaveFileModel.cpp	Thu Oct 05 15:39:23 2006 +0000
@@ -89,6 +89,7 @@
     bool ready = (isOK() && (m_fillThread == 0));
     double c = double(m_lastFillExtent) / double(getEndFrame() - getStartFrame());
     if (completion) *completion = int(c * 100.0 + 0.01);
+    std::cerr << "WaveFileModel::isReady(): ready = " << ready << ", completion = " << (completion ? *completion : -1) << std::endl;
     return ready;
 }
 
--- a/data/model/WritableWaveFileModel.cpp	Thu Oct 05 11:03:06 2006 +0000
+++ b/data/model/WritableWaveFileModel.cpp	Thu Oct 05 15:39:23 2006 +0000
@@ -124,7 +124,7 @@
 WritableWaveFileModel::isReady(int *completion) const
 {
     bool ready = (m_model && m_model->isReady(completion));
-    std::cerr << "WritableWaveFileModel::isReady(): ready = " << ready << std::endl;
+    std::cerr << "WritableWaveFileModel::isReady(): ready = " << ready << ", completion = " << (completion ? *completion : -1) << std::endl;
     return ready;
 }