ReplayGainConfig: add struct ReplayGainConfig, move globals to ReplayGainGlobal.cxx

This commit is contained in:
Max Kellermann
2016-11-25 11:13:08 +01:00
parent dc5984d0e0
commit 77c1f54876
11 changed files with 69 additions and 40 deletions

View File

@@ -21,14 +21,15 @@
#define MPD_REPLAY_GAIN_CONFIG_HXX
#include "check.h"
#include "ReplayGainMode.hxx"
extern ReplayGainMode replay_gain_mode;
extern float replay_gain_preamp;
extern float replay_gain_missing_preamp;
extern bool replay_gain_limit;
struct ReplayGainConfig {
static constexpr bool DEFAULT_LIMIT = true;
void
replay_gain_global_init();
float preamp = 1.0;
float missing_preamp = 1.0;
bool limit = DEFAULT_LIMIT;
};
#endif