{decoder,player}/Control: add ReplayGain{Config,Mode} attributes

Don't use the global variables in class DecoderBridge; instead,
forward these values to the decoder thread via PlayerControl and
DecoderControl.
This commit is contained in:
Max Kellermann
2016-11-25 12:51:55 +01:00
parent 77c1f54876
commit ee57c3490a
5 changed files with 30 additions and 4 deletions

View File

@@ -27,6 +27,8 @@
#include "thread/Cond.hxx"
#include "thread/Thread.hxx"
#include "Chrono.hxx"
#include "ReplayGainConfig.hxx"
#include "ReplayGainMode.hxx"
#include <exception>
@@ -156,6 +158,9 @@ struct DecoderControl {
*/
MusicPipe *pipe;
ReplayGainConfig replay_gain_config;
ReplayGainMode replay_gain_mode = ReplayGainMode::OFF;
float replay_gain_db = 0;
float replay_gain_prev_db = 0;