mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Remove clamping of float samples
This commit is contained in:
parent
7da4d0e473
commit
d8e35bf0c4
1 changed files with 0 additions and 9 deletions
|
@ -1286,16 +1286,7 @@ impl PlayerInternal {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*sample *= actual_normalisation_factor;
|
*sample *= actual_normalisation_factor;
|
||||||
|
|
||||||
// Extremely sharp attacks, however unlikely, *may* still clip and provide
|
|
||||||
// undefined results, so strictly enforce output within [-1.0, 1.0].
|
|
||||||
if *sample < -1.0 {
|
|
||||||
*sample = -1.0;
|
|
||||||
} else if *sample > 1.0 {
|
|
||||||
*sample = 1.0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue