1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 10:19:27 +02:00

Rename steepness to knee

This commit is contained in:
Roderick van Domburg 2021-03-14 14:28:16 +01:00
parent 5f26a745d7
commit 309e26456e
3 changed files with 12 additions and 19 deletions

View file

@ -238,9 +238,9 @@ fn setup(args: &[String]) -> Setup {
)
.optopt(
"",
"normalisation-steepness",
"Steepness of the dynamic limiting curve. Default is 1.0.",
"STEEPNESS",
"normalisation-knee",
"Knee steepness of the dynamic limiter. Default is 1.0.",
"KNEE",
)
.optopt(
"",
@ -475,14 +475,10 @@ fn setup(args: &[String]) -> Setup {
.map(|release| release.parse::<f32>().expect("Invalid release float value"))
.unwrap_or(PlayerConfig::default().normalisation_release * MILLIS)
/ MILLIS,
normalisation_steepness: matches
.opt_str("normalisation-steepness")
.map(|steepness| {
steepness
.parse::<f32>()
.expect("Invalid steepness float value")
})
.unwrap_or(PlayerConfig::default().normalisation_steepness),
normalisation_knee: matches
.opt_str("normalisation-knee")
.map(|knee| knee.parse::<f32>().expect("Invalid knee float value"))
.unwrap_or(PlayerConfig::default().normalisation_knee),
passthrough,
}
};