player/Thread: add option "mixramp_analyzer"

This commit is contained in:
Max Kellermann
2021-12-03 19:59:54 +01:00
parent c884e2f285
commit 35c11afd54
11 changed files with 248 additions and 3 deletions
+3
View File
@@ -80,6 +80,9 @@ enum class ConfigOption {
DESPOTIFY_USER,
DESPOTIFY_PASSWORD,
DESPOTIFY_HIGH_BITRATE,
MIXRAMP_ANALYZER,
MAX
};
+2 -1
View File
@@ -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))
{
}
+2
View File
@@ -39,6 +39,8 @@ struct PlayerConfig {
ReplayGainConfig replay_gain;
bool mixramp_analyzer = false;
PlayerConfig() = default;
explicit PlayerConfig(const ConfigData &config);
+1
View File
@@ -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 =