Fix problem interaction between normalization and zooming.
This commit is contained in:
parent
bc5019035c
commit
8a85a8c217
7
Peaks.C
7
Peaks.C
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue