don't use the return value from AudioRegion::read_peaks() because it is either zero or n_peaks
This commit is contained in:
parent
59028b6c80
commit
25797d8618
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user