Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/data/model/ReadOnlyWaveFileModel.cpp Fri Dec 09 19:04:33 2016 +0000 +++ b/data/model/ReadOnlyWaveFileModel.cpp Mon Dec 12 15:18:52 2016 +0000 @@ -327,6 +327,7 @@ int power = m_zoomConstraint.getMinCachePower(); int roundedBlockSize = m_zoomConstraint.getNearestBlockSize (desired, cacheType, power, ZoomConstraint::RoundDown); + if (cacheType != 0 && cacheType != 1) { // We will be reading directly from file, so can satisfy any // blocksize requirement