Browse Source

Don't read more peaks than needed for waveform.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
2abf28095c
2 changed files with 4 additions and 1 deletions
  1. +2
    -0
      Engine/Peaks.C
  2. +2
    -1
      Timeline/Region.C

+ 2
- 0
Engine/Peaks.C View File

@@ -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 )
{


+ 2
- 1
Timeline/Region.C View File

@@ -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…
Cancel
Save