diff data/fileio/WavFileReader.h @ 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 e08f486e8d8c
line wrap: on
line diff
--- a/data/fileio/WavFileReader.h	Tue Oct 03 14:17:37 2006 +0000
+++ b/data/fileio/WavFileReader.h	Tue Oct 03 15:01:50 2006 +0000
@@ -26,7 +26,7 @@
 class WavFileReader : public AudioFileReader
 {
 public:
-    WavFileReader(QString path);
+    WavFileReader(QString path, bool fileUpdating = false);
     virtual ~WavFileReader();
 
     virtual QString getError() const { return m_error; }
@@ -40,7 +40,10 @@
     
     static void getSupportedExtensions(std::set<QString> &extensions);
 
+    bool isUpdating() const { return m_updating; }
+
     void updateFrameCount();
+    void updateDone();
 
 protected:
     SF_INFO m_fileInfo;
@@ -54,6 +57,8 @@
     mutable size_t m_bufsiz;
     mutable size_t m_lastStart;
     mutable size_t m_lastCount;
+
+    bool m_updating;
 };
 
 #endif