Skip to content

Commit d223cd2

Browse files
committed
Normalization fix
1 parent b3585b7 commit d223cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activities/normalize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (aa AudioActivities) NormalizeAudioActivity(ctx context.Context, params Nor
118118
}
119119

120120
// Bail if the input is already within the target range
121-
if r128Result.SuggestedAdjustment < 0.8 {
121+
if math.Abs(r128Result.SuggestedAdjustment) < 0.8 {
122122
return &NormalizeAudioResult{
123123
FilePath: params.FilePath,
124124
IsSilent: false,

0 commit comments

Comments
 (0)