Skip to content

Commit 7da4d0e

Browse files
committed
Attenuate after normalisation
1 parent 1540636 commit 7da4d0e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

playback/src/player.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,10 +1186,6 @@ impl PlayerInternal {
11861186
Some(mut packet) => {
11871187
if !packet.is_empty() {
11881188
if let AudioPacket::Samples(ref mut data) = packet {
1189-
if let Some(ref editor) = self.audio_filter {
1190-
editor.modify_stream(data)
1191-
}
1192-
11931189
if self.config.normalisation
11941190
&& !(f64::abs(normalisation_factor - 1.0) <= f64::EPSILON
11951191
&& self.config.normalisation_method == NormalisationMethod::Basic)
@@ -1302,6 +1298,10 @@ impl PlayerInternal {
13021298
}
13031299
}
13041300
}
1301+
1302+
if let Some(ref editor) = self.audio_filter {
1303+
editor.modify_stream(data)
1304+
}
13051305
}
13061306

13071307
if let Err(err) = self.sink.write(&packet, &mut self.converter) {

0 commit comments

Comments
 (0)