aboutsummaryrefslogtreecommitdiffstats
path: root/src/player
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-10-27 21:12:20 +0100
committerMax Kellermann <max@duempel.org>2015-10-27 21:12:20 +0100
commit6ce13646da5ef5d78c438f22d7546ef2b30e02bd (patch)
tree0da7438273af31d277cf8c2e15c4d3a5abd70654 /src/player
parent151653dd9867dee03059d95d5a700a1d8ddc5b92 (diff)
downloadmpd-6ce13646da5ef5d78c438f22d7546ef2b30e02bd.tar.gz
mpd-6ce13646da5ef5d78c438f22d7546ef2b30e02bd.tar.xz
mpd-6ce13646da5ef5d78c438f22d7546ef2b30e02bd.zip
player/Thread: more CrossFadeState documentation
Diffstat (limited to 'src/player')
-rw-r--r--src/player/Thread.cxx17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx
index 9876ee470..8261923c8 100644
--- a/src/player/Thread.cxx
+++ b/src/player/Thread.cxx
@@ -90,11 +90,26 @@ class Player {
DetachedSong *song;
/**
- * is cross fading enabled?
+ * Is cross-fading to the next song enabled?
*/
enum class CrossFadeState : uint8_t {
+ /**
+ * The initial state: we don't know yet if we will
+ * cross-fade; it will be determined soon.
+ */
UNKNOWN,
+
+ /**
+ * Cross-fading is disabled for the transition to the
+ * next song.
+ */
DISABLED,
+
+ /**
+ * Cross-fading is enabled (but may not yet be in
+ * progress), will start near the end of the current
+ * song.
+ */
ENABLED,
} xfade_state;