mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 20:22:13 +01:00
Remove duplicated, inaccurate RMS calculations
This commit is contained in:
@@ -213,6 +213,16 @@ void *BlockFile::CalcSummary(samplePtr buffer, sampleCount len,
|
||||
CopySamples(buffer, format,
|
||||
(samplePtr)fbuffer, floatSample, len);
|
||||
|
||||
CalcSummaryFromBuffer(fbuffer, len, summary256, summary64K);
|
||||
|
||||
delete[] fbuffer;
|
||||
|
||||
return fullSummary.get();
|
||||
}
|
||||
|
||||
void BlockFile::CalcSummaryFromBuffer(const float *fbuffer, sampleCount len,
|
||||
float *summary256, float *summary64K)
|
||||
{
|
||||
sampleCount sumLen;
|
||||
sampleCount i, j, jcount;
|
||||
|
||||
@@ -306,10 +316,6 @@ void *BlockFile::CalcSummary(samplePtr buffer, sampleCount len,
|
||||
|
||||
mMin = min;
|
||||
mMax = max;
|
||||
|
||||
delete[] fbuffer;
|
||||
|
||||
return fullSummary.get();
|
||||
}
|
||||
|
||||
static void ComputeMinMax256(float *summary256,
|
||||
|
||||
Reference in New Issue
Block a user