From 752dfb3d95482c562e5d24c6ea839c4815de9a6d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 14 Feb 2010 17:04:39 +0100 Subject: replay_gain: reimplement as a filter plugin Apply the replay gain in the output thread. This means a new setting will be active instantly, without going through the whole music pipe. And we might have different replay gain settings for each audio output device. --- src/output_internal.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/output_internal.h') diff --git a/src/output_internal.h b/src/output_internal.h index 804fd8cd..2a438c62 100644 --- a/src/output_internal.h +++ b/src/output_internal.h @@ -134,6 +134,18 @@ struct audio_output { */ struct filter *filter; + /** + * The replay_gain_filter_plugin instance of this audio + * output. + */ + struct filter *replay_gain_filter; + + /** + * The serial number of the last replay gain info. 0 means no + * replay gain info was available. + */ + unsigned 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