File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ impl NormalisationData {
246
246
let limited_normalisation_power = Self :: ratio_to_db ( limited_normalisation_factor) ;
247
247
248
248
if config. normalisation_method == NormalisationMethod :: Basic {
249
- warn ! ( "Limiting gain to {:.2} for the duration of this track to stay under normalisation threshold." , limited_normalisation_power) ;
249
+ warn ! ( "Limiting gain to {:.2} dB for the duration of this track to stay under normalisation threshold." , limited_normalisation_power) ;
250
250
normalisation_factor = limited_normalisation_factor;
251
251
} else {
252
252
warn ! (
@@ -1161,8 +1161,8 @@ impl PlayerInternal {
1161
1161
}
1162
1162
1163
1163
if self . config . normalisation
1164
- && ( f32:: abs ( normalisation_factor - 1.0 ) < f32:: EPSILON
1165
- || self . config . normalisation_method ! = NormalisationMethod :: Basic )
1164
+ && ! ( f32:: abs ( normalisation_factor - 1.0 ) <= f32:: EPSILON
1165
+ && self . config . normalisation_method = = NormalisationMethod :: Basic )
1166
1166
{
1167
1167
for sample in data. iter_mut ( ) {
1168
1168
let mut actual_normalisation_factor = normalisation_factor;
You can’t perform that action at this time.
0 commit comments