player/Thread: add option "mixramp_analyzer"
This commit is contained in:
@@ -80,6 +80,9 @@ enum class ConfigOption {
|
||||
DESPOTIFY_USER,
|
||||
DESPOTIFY_PASSWORD,
|
||||
DESPOTIFY_HIGH_BITRATE,
|
||||
|
||||
MIXRAMP_ANALYZER,
|
||||
|
||||
MAX
|
||||
};
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ PlayerConfig::PlayerConfig(const ConfigData &config)
|
||||
|
||||
return ParseAudioFormat(s, true);
|
||||
})),
|
||||
replay_gain(config)
|
||||
replay_gain(config),
|
||||
mixramp_analyzer(config.GetBool(ConfigOption::MIXRAMP_ANALYZER, false))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -39,6 +39,8 @@ struct PlayerConfig {
|
||||
|
||||
ReplayGainConfig replay_gain;
|
||||
|
||||
bool mixramp_analyzer = false;
|
||||
|
||||
PlayerConfig() = default;
|
||||
|
||||
explicit PlayerConfig(const ConfigData &config);
|
||||
|
||||
@@ -76,6 +76,7 @@ const ConfigTemplate config_param_templates[] = {
|
||||
{ "despotify_user", false, true },
|
||||
{ "despotify_password", false, true },
|
||||
{ "despotify_high_bitrate", false, true },
|
||||
{ "mixramp_analyzer" },
|
||||
};
|
||||
|
||||
static constexpr unsigned n_config_param_templates =
|
||||
|
||||
Reference in New Issue
Block a user