Skip to content

Commit 30717c3

Browse files
authored
Merge pull request #842 from roderickvd/2db-normalisation-threshold
Update default normalisation threshold
2 parents 2fcd241 + fe644bc commit 30717c3

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
- [playback] `alsamixer`: use `--device` name for `--mixer-card` unless specified otherwise
2727
- [playback] `player`: consider errors in `sink.start`, `sink.stop` and `sink.write` fatal and `exit(1)` (breaking)
2828
- [playback] `player`: make `convert` and `decoder` public so you can implement your own `Sink`
29+
- [playback] Updated default normalisation threshold to -2 dBFS
2930

3031
### Deprecated
3132
- [connect] The `discovery` module was deprecated in favor of the `librespot-discovery` crate

playback/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl Default for PlayerConfig {
151151
normalisation_type: NormalisationType::default(),
152152
normalisation_method: NormalisationMethod::default(),
153153
normalisation_pregain: 0.0,
154-
normalisation_threshold: db_to_ratio(-1.0),
154+
normalisation_threshold: db_to_ratio(-2.0),
155155
normalisation_attack: Duration::from_millis(5),
156156
normalisation_release: Duration::from_millis(100),
157157
normalisation_knee: 1.0,

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ fn get_setup(args: &[String]) -> Setup {
371371
.optopt(
372372
"",
373373
NORMALISATION_THRESHOLD,
374-
"Threshold (dBFS) to prevent clipping. Defaults to -1.0.",
374+
"Threshold (dBFS) to prevent clipping. Defaults to -2.0.",
375375
"THRESHOLD",
376376
)
377377
.optopt(

0 commit comments

Comments
 (0)