diff --git a/playback/src/normaliser.rs b/playback/src/normaliser.rs index d0857738..a72f61ae 100644 --- a/playback/src/normaliser.rs +++ b/playback/src/normaliser.rs @@ -246,7 +246,11 @@ impl Normaliser { self.normalisation.stop(); } - pub fn set_factor(&mut self, auto_normalise_as_album: bool, data: NormalisationData) { + pub fn update_normalisation_data( + &mut self, + auto_normalise_as_album: bool, + data: NormalisationData, + ) { if self.normalisation != Normalisation::None { self.factor = self.get_factor(auto_normalise_as_album, data); } diff --git a/playback/src/player.rs b/playback/src/player.rs index 35b65f42..c993f5f6 100644 --- a/playback/src/player.rs +++ b/playback/src/player.rs @@ -1459,7 +1459,7 @@ impl PlayerInternal { let position_ms = loaded_track.stream_position_ms; - self.sample_pipeline.set_normalisation_factor( + self.sample_pipeline.update_normalisation_data( self.auto_normalise_as_album, loaded_track.normalisation_data, ); diff --git a/playback/src/sample_pipeline.rs b/playback/src/sample_pipeline.rs index e534bea7..fb33cb95 100644 --- a/playback/src/sample_pipeline.rs +++ b/playback/src/sample_pipeline.rs @@ -57,12 +57,13 @@ impl SamplePipeline { Ok(()) } - pub fn set_normalisation_factor( + pub fn update_normalisation_data( &mut self, auto_normalise_as_album: bool, data: NormalisationData, ) { - self.normaliser.set_factor(auto_normalise_as_album, data); + self.normaliser + .update_normalisation_data(auto_normalise_as_album, data); } pub fn write(&mut self, packet: AudioPacket) -> SinkResult<()> {