Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
376:ab24af1271e9 | 377:166c22eff678 |
---|---|
70 | 70 |
71 virtual size_t getData(size_t fromchannel, size_t tochannel, | 71 virtual size_t getData(size_t fromchannel, size_t tochannel, |
72 size_t start, size_t count, | 72 size_t start, size_t count, |
73 float **buffers) const; | 73 float **buffers) const; |
74 | 74 |
75 virtual size_t getSummaryBlockSize(size_t desired) const; | |
76 | |
75 virtual void getSummaries(size_t channel, size_t start, size_t count, | 77 virtual void getSummaries(size_t channel, size_t start, size_t count, |
76 RangeBlock &ranges, | 78 RangeBlock &ranges, |
77 size_t &blockSize) const; | 79 size_t &blockSize) const; |
78 | 80 |
79 virtual Range getSummary(size_t channel, size_t start, size_t count) const; | 81 virtual Range getSummary(size_t channel, size_t start, size_t count) const; |
126 RangeCacheFillThread *m_fillThread; | 128 RangeCacheFillThread *m_fillThread; |
127 QTimer *m_updateTimer; | 129 QTimer *m_updateTimer; |
128 size_t m_lastFillExtent; | 130 size_t m_lastFillExtent; |
129 bool m_exiting; | 131 bool m_exiting; |
130 static PowerOfSqrtTwoZoomConstraint m_zoomConstraint; | 132 static PowerOfSqrtTwoZoomConstraint m_zoomConstraint; |
133 | |
134 mutable SampleBlock m_directRead; | |
135 mutable size_t m_lastDirectReadStart; | |
136 mutable size_t m_lastDirectReadCount; | |
137 mutable QMutex m_directReadMutex; | |
131 }; | 138 }; |
132 | 139 |
133 #endif | 140 #endif |