diff data/model/WaveFileModel.h @ 377:166c22eff678

* Ensure waveforms are strictly correct even when using a non-power-of-two non-power-of-sqrt-two block size with cacheing off and painting only small areas at a time
author Chris Cannam
date Thu, 07 Feb 2008 15:25:05 +0000
parents 0e30c8ec15a0
children 29efe322ab47
line wrap: on
line diff
--- a/data/model/WaveFileModel.h	Thu Feb 07 12:36:59 2008 +0000
+++ b/data/model/WaveFileModel.h	Thu Feb 07 15:25:05 2008 +0000
@@ -72,6 +72,8 @@
                            size_t start, size_t count,
                            float **buffers) const;
 
+    virtual size_t getSummaryBlockSize(size_t desired) const;
+
     virtual void getSummaries(size_t channel, size_t start, size_t count,
                               RangeBlock &ranges,
                               size_t &blockSize) const;
@@ -128,6 +130,11 @@
     size_t m_lastFillExtent;
     bool m_exiting;
     static PowerOfSqrtTwoZoomConstraint m_zoomConstraint;
+
+    mutable SampleBlock m_directRead;
+    mutable size_t m_lastDirectReadStart;
+    mutable size_t m_lastDirectReadCount;
+    mutable QMutex m_directReadMutex;
 };    
 
 #endif