mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix basic volume normalisation
This commit is contained in:
parent
7226bfd55a
commit
ffa284c42a
1 changed files with 2 additions and 2 deletions
|
@ -1161,8 +1161,8 @@ impl PlayerInternal {
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.config.normalisation
|
if self.config.normalisation
|
||||||
&& (f32::abs(normalisation_factor - 1.0) < f32::EPSILON
|
&& !(f32::abs(normalisation_factor - 1.0) <= f32::EPSILON
|
||||||
|| self.config.normalisation_method != NormalisationMethod::Basic)
|
&& self.config.normalisation_method == NormalisationMethod::Basic)
|
||||||
{
|
{
|
||||||
for sample in data.iter_mut() {
|
for sample in data.iter_mut() {
|
||||||
let mut actual_normalisation_factor = normalisation_factor;
|
let mut actual_normalisation_factor = normalisation_factor;
|
||||||
|
|
Loading…
Reference in a new issue