From 8a85a8c217f822784d58fe73abedbd113c3357d0 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Fri, 7 Mar 2008 22:31:11 -0600 Subject: [PATCH] Fix problem interaction between normalization and zooming. --- Peaks.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Peaks.C b/Peaks.C index 4341c49..32e5765 100644 --- a/Peaks.C +++ b/Peaks.C @@ -294,7 +294,12 @@ Peaks::normalization_factor( float fpp, nframes_t start, nframes_t end ) const { float s; - fill_buffer( fpp, start, end ); +// fill_buffer( fpp, start, end ); + + if ( end - start < _peaks->chunksize * 4 ) + fill_buffer( _clip->length() / 4, start, end ); + else + fill_buffer( _clip->length(), start, end ); Peak p = peak( start, end );