13
0

don't use the return value from AudioRegion::read_peaks() because it is either zero or n_peaks

This commit is contained in:
Paul Davis 2015-06-02 12:17:50 -04:00
parent 59028b6c80
commit 25797d8618

View File

@ -873,7 +873,7 @@ WaveView::generate_image (boost::shared_ptr<WaveViewThreadRequest> req, bool in_
if (peaks_read > 0) {
for (framecnt_t i = 0; i < peaks_read; ++i) {
for (framecnt_t i = 0; i < n_peaks; ++i) {
peaks[i].max *= _amplitude_above_axis;
peaks[i].min *= _amplitude_above_axis;
}