aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_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/decoder_internal.h
parent5e0117b4441f257fcb1aab48b42a787567ebcbe6 (diff)
downloadmpd-752dfb3d95482c562e5d24c6ea839c4815de9a6d.tar.gz
mpd-752dfb3d95482c562e5d24c6ea839c4815de9a6d.tar.xz
mpd-752dfb3d95482c562e5d24c6ea839c4815de9a6d.zip
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/decoder_internal.h')
-rw-r--r--src/decoder_internal.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/decoder_internal.h b/src/decoder_internal.h
index 159b40b92..9e7e2037a 100644
--- a/src/decoder_internal.h
+++ b/src/decoder_internal.h
@@ -22,6 +22,7 @@
#include "decoder_command.h"
#include "pcm_convert.h"
+#include "replay_gain_info.h"
struct input_stream;
@@ -53,7 +54,13 @@ struct decoder {
/** the chunk currently being written to */
struct music_chunk *chunk;
- struct replay_gain_state *replay_gain;
+ struct replay_gain_info replay_gain_info;
+
+ /**
+ * A positive serial number for checking if replay gain info
+ * has changed since the last check.
+ */
+ unsigned replay_gain_serial;
};
/**