diff options
author | Max Kellermann <max@duempel.org> | 2010-02-14 17:04:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-02-17 07:23:13 +0100 |
commit | 752dfb3d95482c562e5d24c6ea839c4815de9a6d (patch) | |
tree | 46b62f26c4c68ebe81b72b9ca30366ffa14af1a5 /src/chunk.h | |
parent | 5e0117b4441f257fcb1aab48b42a787567ebcbe6 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/chunk.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/chunk.h b/src/chunk.h index 58bab3dc2..23f6321fb 100644 --- a/src/chunk.h +++ b/src/chunk.h @@ -20,6 +20,8 @@ #ifndef MPD_CHUNK_H #define MPD_CHUNK_H +#include "replay_gain_info.h" + #ifndef NDEBUG #include "audio_format.h" #endif @@ -59,6 +61,19 @@ struct music_chunk { */ struct tag *tag; + /** + * Replay gain information associated with this chunk. + * Only valid if the serial is not 0. + */ + struct replay_gain_info replay_gain_info; + + /** + * A serial number for checking if replay gain info has + * changed since the last chunk. The magic value 0 indicates + * that there is no replay gain info available. + */ + unsigned replay_gain_serial; + /** the data (probably PCM) */ char data[CHUNK_SIZE]; |