From c05691b546544e22b5e39847cf8618c9496d3cc1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Dec 2013 11:51:37 +0100 Subject: OutputControl: update both ReplayGainFilters The "mode" of the second ReplayGainFilter was never set, and thus replay gain was never applied to the new song during cross-fade. --- NEWS | 1 + src/OutputControl.cxx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 347ad8f5a..a90fdc93c 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,7 @@ ver 0.18.6 (not yet released) - osx: fix build failure * mixer - alsa: fix build failure with uClibc +* fix replay gain during cross-fade * accept files without metadata ver 0.18.5 (2013/11/23) diff --git a/src/OutputControl.cxx b/src/OutputControl.cxx index 553507a2a..27f280231 100644 --- a/src/OutputControl.cxx +++ b/src/OutputControl.cxx @@ -101,6 +101,8 @@ audio_output_set_replay_gain_mode(struct audio_output *ao, { if (ao->replay_gain_filter != nullptr) replay_gain_filter_set_mode(ao->replay_gain_filter, mode); + if (ao->other_replay_gain_filter != nullptr) + replay_gain_filter_set_mode(ao->other_replay_gain_filter, mode); } void -- cgit v1.2.3