Fix problem interaction between normalization and zooming.

This commit is contained in:
Jonathan Moore Liles 2008-03-07 22:31:11 -06:00
parent bc5019035c
commit 8a85a8c217
1 changed files with 6 additions and 1 deletions

View File

@ -294,7 +294,12 @@ Peaks::normalization_factor( float fpp, nframes_t start, nframes_t end ) const
{ {
float s; 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 ); Peak p = peak( start, end );