13
0

Factor RMS normalization by sqrt(2); match sine peak

This commit is contained in:
Robin Gareus 2017-05-06 15:09:05 +02:00
parent 5b23688730
commit d02cf631c7

View File

@ -1470,7 +1470,7 @@ AudioRegion::rms (Progress* p) const
}
}
}
return sqrt (rms / (double)(total * n_chan));
return sqrt (2. * rms / (double)(total * n_chan));
}
/** Normalize using a given maximum amplitude and target, so that region