mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
add comment explaining non-idiomatic C++
This commit is contained in:
parent
b2d553cc51
commit
3245a89bfe
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue