config/Option: convert to strictly-typed enum
This commit is contained in:
@@ -108,7 +108,7 @@ audio_output_mixer_type(const config_param ¶m)
|
||||
|
||||
/* fall back to the global "mixer_type" setting (also
|
||||
deprecated) */
|
||||
return mixer_type_parse(config_get_string(CONF_MIXER_TYPE,
|
||||
return mixer_type_parse(config_get_string(ConfigOption::MIXER_TYPE,
|
||||
"hardware"));
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ AudioOutput::Configure(const config_param ¶m, Error &error)
|
||||
|
||||
/* create the normalization filter (if configured) */
|
||||
|
||||
if (config_get_bool(CONF_VOLUME_NORMALIZATION, false)) {
|
||||
if (config_get_bool(ConfigOption::VOLUME_NORMALIZATION, false)) {
|
||||
Filter *normalize_filter =
|
||||
filter_new(&normalize_filter_plugin, config_param(),
|
||||
IgnoreError());
|
||||
|
@@ -74,7 +74,7 @@ LoadOutput(EventLoop &event_loop, MixerListener &mixer_listener,
|
||||
void
|
||||
MultipleOutputs::Configure(EventLoop &event_loop, PlayerControl &pc)
|
||||
{
|
||||
for (const config_param *param = config_get_param(CONF_AUDIO_OUTPUT);
|
||||
for (const auto *param = config_get_param(ConfigOption::AUDIO_OUTPUT);
|
||||
param != nullptr; param = param->next) {
|
||||
auto output = LoadOutput(event_loop, mixer_listener,
|
||||
pc, *param);
|
||||
|
Reference in New Issue
Block a user