diff data/model/WritableWaveFileModel.cpp @ 176:570794f6f6a7

* Some fixes to updating of writable wave file models
author Chris Cannam
date Tue, 03 Oct 2006 15:01:50 +0000
parents b0f4555b625e
children bd1260261412
line wrap: on
line diff
--- a/data/model/WritableWaveFileModel.cpp	Tue Oct 03 14:17:37 2006 +0000
+++ b/data/model/WritableWaveFileModel.cpp	Tue Oct 03 15:01:50 2006 +0000
@@ -77,7 +77,7 @@
 
     if (!m_model) {
 
-        m_reader = new WavFileReader(m_writer->getPath());
+        m_reader = new WavFileReader(m_writer->getPath(), true);
         if (!m_reader->getError().isEmpty()) {
             std::cerr << "WritableWaveFileModel: Error in creating wave file reader" << std::endl;
             delete m_reader;
@@ -108,7 +108,8 @@
 void
 WritableWaveFileModel::sync()
 {
-    if (m_reader) m_reader->updateFrameCount();
+    //!!! use setCompletion instead
+    if (m_reader) m_reader->updateDone();
 }    
 
 bool