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/mixer/MixerType.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/mixer/MixerType.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mixer/MixerType.cxx b/src/mixer/MixerType.cxx index 47016fd0a..0605f0979 100644 --- a/src/mixer/MixerType.cxx +++ b/src/mixer/MixerType.cxx @@ -29,11 +29,11 @@ mixer_type_parse(const char *input) assert(input != NULL); if (strcmp(input, "none") == 0 || strcmp(input, "disabled") == 0) - return MIXER_TYPE_NONE; + return MixerType::NONE; else if (strcmp(input, "hardware") == 0) - return MIXER_TYPE_HARDWARE; + return MixerType::HARDWARE; else if (strcmp(input, "software") == 0) - return MIXER_TYPE_SOFTWARE; + return MixerType::SOFTWARE; else - return MIXER_TYPE_UNKNOWN; + return MixerType::UNKNOWN; } |