Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
376:ab24af1271e9 | 377:166c22eff678 |
---|---|
195 { | 195 { |
196 if (!m_model || m_model->getChannelCount() == 0) return 0; | 196 if (!m_model || m_model->getChannelCount() == 0) return 0; |
197 return m_model->getData(fromchannel, tochannel, start, count, buffers); | 197 return m_model->getData(fromchannel, tochannel, start, count, buffers); |
198 } | 198 } |
199 | 199 |
200 size_t | |
201 WritableWaveFileModel::getSummaryBlockSize(size_t desired) const | |
202 { | |
203 if (!m_model) return desired; | |
204 return m_model->getSummaryBlockSize(desired); | |
205 } | |
206 | |
200 void | 207 void |
201 WritableWaveFileModel::getSummaries(size_t channel, size_t start, size_t count, | 208 WritableWaveFileModel::getSummaries(size_t channel, size_t start, size_t count, |
202 RangeBlock &ranges, | 209 RangeBlock &ranges, |
203 size_t &blockSize) const | 210 size_t &blockSize) const |
204 { | 211 { |