Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 327:29fcf125f98b
* Pass StorageAdviser::Criteria into FFTModel constructor etc
author | Chris Cannam |
---|---|
date | Sun, 11 Nov 2007 20:31:12 +0000 |
parents | 4f4f38a11cd2 |
children | bbc9666cb961 d2d2521a6c7e |
comparison
equal
deleted
inserted
replaced
326:4f4f38a11cd2 | 327:29fcf125f98b |
---|---|
876 } | 876 } |
877 | 877 |
878 void | 878 void |
879 SpectrogramLayer::setNormalizeVisibleArea(bool n) | 879 SpectrogramLayer::setNormalizeVisibleArea(bool n) |
880 { | 880 { |
881 std::cerr << "SpectrogramLayer::setNormalizeVisibleArea(" << n | |
882 << ") (from " << m_normalizeVisibleArea << ")" << std::endl; | |
883 | |
881 if (m_normalizeVisibleArea == n) return; | 884 if (m_normalizeVisibleArea == n) return; |
882 | 885 |
883 invalidatePixmapCaches(); | 886 invalidatePixmapCaches(); |
884 invalidateMagnitudes(); | 887 invalidateMagnitudes(); |
885 m_normalizeVisibleArea = n; | 888 m_normalizeVisibleArea = n; |
1537 m_channel, | 1540 m_channel, |
1538 m_windowType, | 1541 m_windowType, |
1539 m_windowSize, | 1542 m_windowSize, |
1540 getWindowIncrement(), | 1543 getWindowIncrement(), |
1541 fftSize, | 1544 fftSize, |
1542 //!!! true, | 1545 true, |
1543 false, | 1546 StorageAdviser::SpeedCritical, |
1544 m_candidateFillStartFrame); | 1547 m_candidateFillStartFrame); |
1545 | 1548 |
1546 if (!model->isOK()) { | 1549 if (!model->isOK()) { |
1547 QMessageBox::critical | 1550 QMessageBox::critical |
1548 (0, tr("FFT cache failed"), | 1551 (0, tr("FFT cache failed"), |