Browse Source

Timeline: When waiting for peaks, only check again every 500ms.

tags/non-daw-v1.2.0
Jonathan Moore Liles 13 years ago
parent
commit
6a0b2d2069
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      timeline/src/Audio_Region.C

+ 2
- 2
timeline/src/Audio_Region.C View File

@@ -420,7 +420,7 @@ Audio_Region::peaks_pending_cb ( Peaks_Redraw_Request *r )
delete r;
}
else
Fl::repeat_timeout( 0.1f, &Audio_Region::peaks_pending_cb, (void*)r );
Fl::repeat_timeout( 0.5f, &Audio_Region::peaks_pending_cb, (void*)r );
}

void
@@ -614,7 +614,7 @@ Audio_Region::draw ( void )
if ( peaks < loop_peaks_needed )
{
/* couldn't read peaks--perhaps they're being generated. Try again later. */
Fl::add_timeout( 0.1f, &Audio_Region::peaks_pending_cb,
Fl::add_timeout( 0.5f, &Audio_Region::peaks_pending_cb,
new Peaks_Redraw_Request( this, start + timeline->x_to_ts( peaks ), end ) );
}



Loading…
Cancel
Save