Fix quiet Faust receipt normalization
This commit is contained in:
parent
8f267e301b
commit
9e3b253f7d
5 changed files with 14 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue