# HG changeset patch # User Chris Cannam # Date 1172769170 0 # Node ID ff46f251139e036d49c616ff08a2d7aa2eab2fd4 # Parent 2f7d27648806032dc95de4383f57b7d95f4d803e * Fix overzealous cacheing in waveform layer that was leading to inaccurate positioning of view rects & playback pointer on overview widget sometimes diff -r 2f7d27648806 -r ff46f251139e data/fft/FFTMemoryCache.cpp --- a/data/fft/FFTMemoryCache.cpp Thu Mar 01 15:35:27 2007 +0000 +++ b/data/fft/FFTMemoryCache.cpp Thu Mar 01 17:12:50 2007 +0000 @@ -29,7 +29,7 @@ FFTMemoryCache::~FFTMemoryCache() { - std::cerr << "FFTMemoryCache[" << this << "]::~Cache" << std::endl; +// std::cerr << "FFTMemoryCache[" << this << "]::~Cache" << std::endl; for (size_t i = 0; i < m_width; ++i) { if (m_magnitude && m_magnitude[i]) free(m_magnitude[i]); @@ -44,7 +44,7 @@ void FFTMemoryCache::resize(size_t width, size_t height) { - std::cerr << "FFTMemoryCache[" << this << "]::resize(" << width << "x" << height << " = " << width*height << ")" << std::endl; +// std::cerr << "FFTMemoryCache[" << this << "]::resize(" << width << "x" << height << " = " << width*height << ")" << std::endl; if (m_width == width && m_height == height) return; @@ -57,7 +57,7 @@ m_width = width; m_height = height; - std::cerr << "done, width = " << m_width << " height = " << m_height << std::endl; +// std::cerr << "done, width = " << m_width << " height = " << m_height << std::endl; } void