comparison data/model/ReadOnlyWaveFileModel.cpp @ 1550:1ae6a19464a7 zoom-double

Messing with non-integer zoom ratios. But I don't think this is going anywhere as it stands
author Chris Cannam
date Mon, 08 Oct 2018 13:39:40 +0100
parents 710e6250a401
children
comparison
equal deleted inserted replaced
1547:32400727bcbd 1550:1ae6a19464a7
337 int 337 int
338 ReadOnlyWaveFileModel::getSummaryBlockSize(int desired) const 338 ReadOnlyWaveFileModel::getSummaryBlockSize(int desired) const
339 { 339 {
340 int cacheType = 0; 340 int cacheType = 0;
341 int power = m_zoomConstraint.getMinCachePower(); 341 int power = m_zoomConstraint.getMinCachePower();
342 int roundedBlockSize = m_zoomConstraint.getNearestBlockSize 342 double roundedBlockSize = m_zoomConstraint.getNearestBlockSize
343 (desired, cacheType, power, ZoomConstraint::RoundDown); 343 (desired, cacheType, power, ZoomConstraint::RoundDown);
344 344
345 if (cacheType != 0 && cacheType != 1) { 345 if (cacheType != 0 && cacheType != 1) {
346 // We will be reading directly from file, so can satisfy any 346 // We will be reading directly from file, so can satisfy any
347 // blocksize requirement 347 // blocksize requirement