From 619cfe6a1ce3abd6e70878f137c18d61004ea578 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 27 Oct 2015 20:48:14 +0100 Subject: player/Thread: move enum CrossFadeState into the Player class --- src/player/Thread.cxx | 12 +++++------- 1 file 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? -- cgit v1.2.3