Don't read more peaks than needed for waveform.
This commit is contained in:
parent
b0d5b60a6f
commit
2abf28095c
|
@ -48,6 +48,8 @@ Peaks::fill_buffer ( float fpp, int s, int e ) const
|
|||
{
|
||||
_fpp = fpp;
|
||||
|
||||
printf( "fill_buffer\n" );
|
||||
|
||||
/* FIXME: repair this */
|
||||
// if ( fpp < _peaks->chunksize )
|
||||
{
|
||||
|
|
|
@ -460,7 +460,8 @@ Region::draw ( int X, int Y, int W, int H )
|
|||
Peak *pbuf;
|
||||
|
||||
_clip->read_peaks( timeline->fpp(),
|
||||
_start + offset, min( (_end - _start) - offset, _end),
|
||||
// _start + offset, min( (_end - _start) - offset, _end),
|
||||
_start + offset, _start + offset + timeline->x_to_ts( W ),
|
||||
&peaks, &pbuf, &channels );
|
||||
|
||||
assert( pbuf );
|
||||
|
|
Loading…
Reference in New Issue