# HG changeset patch # User Chris Cannam # Date 1137073395 0 # Node ID ce747045a02314ed42a65a4397c6a555aca90309 # Parent 7af44e8578c8b09c36477bf359e051e68cab5c18 * Invalidate cache when model replaced diff -r 7af44e8578c8 -r ce747045a023 layer/WaveformLayer.cpp --- a/layer/WaveformLayer.cpp Thu Jan 12 13:42:30 2006 +0000 +++ b/layer/WaveformLayer.cpp Thu Jan 12 13:43:15 2006 +0000 @@ -2,7 +2,7 @@ /* A waveform viewer and audio annotation editor. - Chris Cannam, Queen Mary University of London, 2005 + Chris Cannam, Queen Mary University of London, 2005-2006 This is experimental software. Not for distribution. */ @@ -19,6 +19,8 @@ #include #include +//#define DEBUG_WAVEFORM_PAINT 1 + using std::cerr; using std::endl; @@ -394,7 +396,9 @@ long frame0 = startFrame + x0 * zoomLevel; long frame1 = startFrame + (x1 + 1) * zoomLevel; -// std::cerr << "Painting waveform from " << frame0 << " to " << frame1 << " (" << (x1-x0+1) << " pixels at zoom " << zoomLevel << ")" << std::endl; +#ifdef DEBUG_WAVEFORM_PAINT + std::cerr << "Painting waveform from " << frame0 << " to " << frame1 << " (" << (x1-x0+1) << " pixels at zoom " << zoomLevel << ")" << std::endl; +#endif RangeSummarisableTimeValueModel::RangeBlock ranges; RangeSummarisableTimeValueModel::RangeBlock otherChannelRanges;