diff options
author | Max Kellermann <max@duempel.org> | 2014-12-02 18:17:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-02 18:20:44 +0100 |
commit | f2bd2c318c810645b4e3c7518d695d6d4b1c06a7 (patch) | |
tree | 2e40cd5c970eef390efb11658f5222ebe831e3b9 /src/output/Init.cxx | |
parent | 21c42819c757129a22326d8407b8ced16cb6d30b (diff) | |
download | mpd-f2bd2c318c810645b4e3c7518d695d6d4b1c06a7.tar.gz mpd-f2bd2c318c810645b4e3c7518d695d6d4b1c06a7.tar.xz mpd-f2bd2c318c810645b4e3c7518d695d6d4b1c06a7.zip |
MixerType: convert to strictly-typed enum
Diffstat (limited to '')
-rw-r--r-- | src/output/Init.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/output/Init.cxx b/src/output/Init.cxx index f195f6b8b..3518c5c64 100644 --- a/src/output/Init.cxx +++ b/src/output/Init.cxx @@ -103,7 +103,7 @@ audio_output_mixer_type(const config_param ¶m) /* try the local "mixer_enabled" setting next (deprecated) */ if (!param.GetBlockValue("mixer_enabled", true)) - return MIXER_TYPE_NONE; + return MixerType::NONE; /* fall back to the global "mixer_type" setting (also deprecated) */ @@ -122,18 +122,18 @@ audio_output_load_mixer(EventLoop &event_loop, AudioOutput &ao, Mixer *mixer; switch (audio_output_mixer_type(param)) { - case MIXER_TYPE_NONE: - case MIXER_TYPE_UNKNOWN: + case MixerType::NONE: + case MixerType::UNKNOWN: return nullptr; - case MIXER_TYPE_HARDWARE: + case MixerType::HARDWARE: if (plugin == nullptr) return nullptr; return mixer_new(event_loop, *plugin, ao, listener, param, error); - case MIXER_TYPE_SOFTWARE: + case MixerType::SOFTWARE: mixer = mixer_new(event_loop, software_mixer_plugin, ao, listener, config_param(), |