From d88c3c8462f12cec592d24ef8a3ebd570ede9ca6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 May 2010 15:57:59 +0200 Subject: output_thread: call replay gain filter manually Don't add it to the filter chain, because we need to apply replay gain before cross-fading with the next song. Add a second replay_gain filter which is used for the song being faded in (chunk->other). --- src/output_internal.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/output_internal.h') diff --git a/src/output_internal.h b/src/output_internal.h index 06e20937..9e4d1f25 100644 --- a/src/output_internal.h +++ b/src/output_internal.h @@ -158,6 +158,19 @@ struct audio_output { */ unsigned replay_gain_serial; + /** + * The replay_gain_filter_plugin instance of this audio + * output, to be applied to the second chunk during + * cross-fading. + */ + struct filter *other_replay_gain_filter; + + /** + * The serial number of the last replay gain info by the + * "other" chunk during cross-fading. + */ + unsigned other_replay_gain_serial; + /** * The convert_filter_plugin instance of this audio output. * It is the last item in the filter chain, and is responsible -- cgit v1.2.3