aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-10-27 20:48:14 +0100
committerMax Kellermann <max@duempel.org>2015-10-27 20:48:14 +0100
commit619cfe6a1ce3abd6e70878f137c18d61004ea578 (patch)
tree1fda437a4c9187a709256e3e90f5229c3ad0ee4c
parent8acf996d90e3be551ebffc98de7248a5bee5b69c (diff)
downloadmpd-619cfe6a1ce3abd6e70878f137c18d61004ea578.tar.gz
mpd-619cfe6a1ce3abd6e70878f137c18d61004ea578.tar.xz
mpd-619cfe6a1ce3abd6e70878f137c18d61004ea578.zip
player/Thread: move enum CrossFadeState into the Player class
Diffstat (limited to '')
-rw-r--r--src/player/Thread.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx
index 60e253f4c..e85522d88 100644
--- a/src/player/Thread.cxx
+++ b/src/player/Thread.cxx
@@ -40,12 +40,6 @@
static constexpr Domain player_domain("player");
-enum class CrossFadeState : int8_t {
- DISABLED = -1,
- UNKNOWN = 0,
- ENABLED = 1
-};
-
class Player {
PlayerControl &pc;
@@ -98,7 +92,11 @@ class Player {
/**
* is cross fading enabled?
*/
- CrossFadeState xfade_state;
+ enum class CrossFadeState : int8_t {
+ DISABLED = -1,
+ UNKNOWN = 0,
+ ENABLED = 1,
+ } xfade_state;
/**
* has cross-fading begun?