Commit c05691b5 authored by Max Kellermann's avatar Max Kellermann

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.
parent 6b3b8c6f
...@@ -10,6 +10,7 @@ ver 0.18.6 (not yet released) ...@@ -10,6 +10,7 @@ ver 0.18.6 (not yet released)
- osx: fix build failure - osx: fix build failure
* mixer * mixer
- alsa: fix build failure with uClibc - alsa: fix build failure with uClibc
* fix replay gain during cross-fade
* accept files without metadata * accept files without metadata
ver 0.18.5 (2013/11/23) ver 0.18.5 (2013/11/23)
......
...@@ -101,6 +101,8 @@ audio_output_set_replay_gain_mode(struct audio_output *ao, ...@@ -101,6 +101,8 @@ audio_output_set_replay_gain_mode(struct audio_output *ao,
{ {
if (ao->replay_gain_filter != nullptr) if (ao->replay_gain_filter != nullptr)
replay_gain_filter_set_mode(ao->replay_gain_filter, mode); 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 void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment