aboutsummaryrefslogtreecommitdiff
path: root/src/output_internal.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-02-14 17:04:39 +0100
committerMax Kellermann <max@duempel.org>2010-02-17 07:23:13 +0100
commit752dfb3d95482c562e5d24c6ea839c4815de9a6d (patch)
tree46b62f26c4c68ebe81b72b9ca30366ffa14af1a5 /src/output_internal.h
parent5e0117b4441f257fcb1aab48b42a787567ebcbe6 (diff)
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.
Diffstat (limited to 'src/output_internal.h')
-rw-r--r--src/output_internal.h12
1 files changed, 12 insertions, 0 deletions
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
@@ -135,6 +135,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
* for converting the input data into the appropriate format