diff data/model/WritableWaveFileModel.cpp @ 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 e43368ec5ff0
line wrap: on
line diff
--- a/data/model/WritableWaveFileModel.cpp	Thu Feb 07 12:36:59 2008 +0000
+++ b/data/model/WritableWaveFileModel.cpp	Thu Feb 07 15:25:05 2008 +0000
@@ -197,6 +197,13 @@
     return m_model->getData(fromchannel, tochannel, start, count, buffers);
 }    
 
+size_t
+WritableWaveFileModel::getSummaryBlockSize(size_t desired) const
+{
+    if (!m_model) return desired;
+    return m_model->getSummaryBlockSize(desired);
+}
+
 void
 WritableWaveFileModel::getSummaries(size_t channel, size_t start, size_t count,
                                     RangeBlock &ranges,