Mercurial > hg > svcore
comparison data/model/ReadOnlyWaveFileModel.cpp @ 1324:d4a28d1479a8 zoom
Some hackery toward having a zoomlevel type
author | Chris Cannam |
---|---|
date | Mon, 12 Dec 2016 15:18:52 +0000 |
parents | ff9697592bef |
children | 710e6250a401 |
comparison
equal
deleted
inserted
replaced
1323:4dbb7a7c9c28 | 1324:d4a28d1479a8 |
---|---|
325 { | 325 { |
326 int cacheType = 0; | 326 int cacheType = 0; |
327 int power = m_zoomConstraint.getMinCachePower(); | 327 int power = m_zoomConstraint.getMinCachePower(); |
328 int roundedBlockSize = m_zoomConstraint.getNearestBlockSize | 328 int roundedBlockSize = m_zoomConstraint.getNearestBlockSize |
329 (desired, cacheType, power, ZoomConstraint::RoundDown); | 329 (desired, cacheType, power, ZoomConstraint::RoundDown); |
330 | |
330 if (cacheType != 0 && cacheType != 1) { | 331 if (cacheType != 0 && cacheType != 1) { |
331 // We will be reading directly from file, so can satisfy any | 332 // We will be reading directly from file, so can satisfy any |
332 // blocksize requirement | 333 // blocksize requirement |
333 return desired; | 334 return desired; |
334 } else { | 335 } else { |