Fix quiet Faust receipt normalization

This commit is contained in:
Meta Vens 2026-06-01 05:36:00 +01:00
commit 9e3b253f7d
5 changed files with 14 additions and 4 deletions

View file

@ -4868,7 +4868,7 @@ static double NoiseEstimate(IReadOnlyList<float> samples)
static float[] NormalizePeak(IReadOnlyList<float> samples, float peak)
{
var max = samples.Select(static sample => Math.Abs(sample)).DefaultIfEmpty(0.0f).Max();
if (max <= peak || max <= 1.0e-9f)
if (max <= 1.0e-9f)
{
return samples.ToArray();
}