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 ();
|
s += ar->start_sample ();
|
||||||
|
|
||||||
PeakData p;
|
PeakData p;
|
||||||
|
|
||||||
|
/* no default constructor, since PeakData is POD */
|
||||||
|
|
||||||
p.min = 0;
|
p.min = 0;
|
||||||
p.max = 0;
|
p.max = 0;
|
||||||
|
|
||||||
for (uint32_t chn = 0; chn < ar->n_channels (); ++chn) {
|
for (uint32_t chn = 0; chn < ar->n_channels (); ++chn) {
|
||||||
PeakData pc;
|
PeakData pc;
|
||||||
ar->read_peaks (&pc, 1, s, samples_per_pixel, chn, samples_per_pixel);
|
ar->read_peaks (&pc, 1, s, samples_per_pixel, chn, samples_per_pixel);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user