diff layer/WaveformLayer.cpp @ 4:ce747045a023

* Invalidate cache when model replaced
author Chris Cannam
date Thu, 12 Jan 2006 13:43:15 +0000
parents 77dad696d740
children 02aaea1ffaf7
line wrap: on
line diff
--- 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 <iostream>
 #include <cmath>
 
+//#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;