comparison data/model/AggregateWaveModel.cpp @ 384:6f6ab834449d spectrogram-cache-rejig

* Merge from trunk
author Chris Cannam
date Wed, 27 Feb 2008 11:59:42 +0000
parents 70a232b1f12a
children
comparison
equal deleted inserted replaced
337:a6fab10ff9e6 384:6f6ab834449d
173 } 173 }
174 174
175 if (mixing) delete[] readbuf; 175 if (mixing) delete[] readbuf;
176 return sz; 176 return sz;
177 } 177 }
178
179 size_t
180 AggregateWaveModel::getData(size_t fromchannel, size_t tochannel,
181 size_t start, size_t count,
182 float **buffer) const
183 {
184 size_t min = count;
185
186 for (size_t c = fromchannel; c <= tochannel; ++c) {
187 size_t here = getData(c, start, count, buffer[c - fromchannel]);
188 if (here < min) min = here;
189 }
190
191 return min;
192 }
193
194 size_t
195 AggregateWaveModel::getSummaryBlockSize(size_t desired) const
196 {
197 //!!! complete
198 return desired;
199 }
178 200
179 void 201 void
180 AggregateWaveModel::getSummaries(size_t channel, size_t start, size_t count, 202 AggregateWaveModel::getSummaries(size_t channel, size_t start, size_t count,
181 RangeBlock &ranges, size_t &blockSize) const 203 RangeBlock &ranges, size_t &blockSize) const
182 { 204 {