diff options
author | Max Kellermann <max@musicpd.org> | 2016-11-25 11:13:08 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-11-25 11:13:08 +0100 |
commit | 77c1f5487668569abb24dc458c40f019539dda52 (patch) | |
tree | 028c4bb9714a165f7a9ccb4984ae346267c719a7 /src/ReplayGainConfig.hxx | |
parent | dc5984d0e0fb28ce4443c7bd1791fa1363fb7bed (diff) |
ReplayGainConfig: add struct ReplayGainConfig, move globals to ReplayGainGlobal.cxx
Diffstat (limited to 'src/ReplayGainConfig.hxx')
-rw-r--r-- | src/ReplayGainConfig.hxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ReplayGainConfig.hxx b/src/ReplayGainConfig.hxx index 3d3154c3f..f5d560ecc 100644 --- a/src/ReplayGainConfig.hxx +++ b/src/ReplayGainConfig.hxx @@ -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 |