comparison data/model/WaveFileModel.cpp @ 180:bd1260261412

...
author Chris Cannam
date Thu, 05 Oct 2006 15:39:23 +0000
parents 0ed2b2e26b44
children 89b05b679dc3
comparison
equal deleted inserted replaced
179:0ed2b2e26b44 180:bd1260261412
87 WaveFileModel::isReady(int *completion) const 87 WaveFileModel::isReady(int *completion) const
88 { 88 {
89 bool ready = (isOK() && (m_fillThread == 0)); 89 bool ready = (isOK() && (m_fillThread == 0));
90 double c = double(m_lastFillExtent) / double(getEndFrame() - getStartFrame()); 90 double c = double(m_lastFillExtent) / double(getEndFrame() - getStartFrame());
91 if (completion) *completion = int(c * 100.0 + 0.01); 91 if (completion) *completion = int(c * 100.0 + 0.01);
92 std::cerr << "WaveFileModel::isReady(): ready = " << ready << ", completion = " << (completion ? *completion : -1) << std::endl;
92 return ready; 93 return ready;
93 } 94 }
94 95
95 Model * 96 Model *
96 WaveFileModel::clone() const 97 WaveFileModel::clone() const