diff options
author | Max Kellermann <max@duempel.org> | 2010-05-02 15:57:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-05-02 18:21:16 +0200 |
commit | d88c3c8462f12cec592d24ef8a3ebd570ede9ca6 (patch) | |
tree | 580e25a8c0368fead87dba18c5f226c00ea679a2 /src/output_internal.h | |
parent | 5399a72ec1141307e79970993e4a90a8d643ac50 (diff) | |
download | mpd-d88c3c8462f12cec592d24ef8a3ebd570ede9ca6.tar.gz mpd-d88c3c8462f12cec592d24ef8a3ebd570ede9ca6.tar.xz mpd-d88c3c8462f12cec592d24ef8a3ebd570ede9ca6.zip |
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).
Diffstat (limited to '')
-rw-r--r-- | src/output_internal.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/output_internal.h b/src/output_internal.h index 06e209374..9e4d1f25d 100644 --- a/src/output_internal.h +++ b/src/output_internal.h @@ -159,6 +159,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 * for converting the input data into the appropriate format |