add comment explaining non-idiomatic C++
This commit is contained in:
parent
b2d553cc51
commit
3245a89bfe
|
@ -97,8 +97,12 @@ RegionPeakCursor::set (AudioRegionView* arv, samplepos_t when, samplecnt_t sampl
|
|||
s += ar->start_sample ();
|
||||
|
||||
PeakData p;
|
||||
|
||||
/* no default constructor, since PeakData is POD */
|
||||
|
||||
p.min = 0;
|
||||
p.max = 0;
|
||||
|
||||
for (uint32_t chn = 0; chn < ar->n_channels (); ++chn) {
|
||||
PeakData pc;
|
||||
ar->read_peaks (&pc, 1, s, samples_per_pixel, chn, samples_per_pixel);
|
||||
|
|
Loading…
Reference in New Issue
Block a user