comparison data/model/AggregateWaveModel.cpp @ 383:94fc0591ea43 1.2-stable

* merge from trunk (1.2 ended up being tracked from trunk, but we may want this branch for fixes later)
author Chris Cannam
date Wed, 27 Feb 2008 10:32:45 +0000
parents 70a232b1f12a
children
comparison
equal deleted inserted replaced
349:f39d33b0b265 383:94fc0591ea43
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 {