aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-25 22:59:13 +0100
committerMax Kellermann <max@duempel.org>2009-12-27 14:46:04 +0100
commita038bca74580359a883dc8d526feb7104a677d8c (patch)
tree0ade8231ea065723839086f135d715d4284a21e9 /src/song.h
parentcf38505d8fddbfee431936969e34b9d438243f31 (diff)
downloadmpd-a038bca74580359a883dc8d526feb7104a677d8c.tar.gz
mpd-a038bca74580359a883dc8d526feb7104a677d8c.tar.xz
mpd-a038bca74580359a883dc8d526feb7104a677d8c.zip
song: added support for selecting a time range
Added attributes start_ms, end_ms. This allows us to address a portion of a song file (important for CUE support). There is no support yet for storing these attributes in the state file.
Diffstat (limited to '')
-rw-r--r--src/song.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/song.h b/src/song.h
index 832f3d700..2bebee64e 100644
--- a/src/song.h
+++ b/src/song.h
@@ -31,6 +31,18 @@ struct song {
struct tag *tag;
struct directory *parent;
time_t mtime;
+
+ /**
+ * Start of this sub-song within the file in milliseconds.
+ */
+ unsigned start_ms;
+
+ /**
+ * End of this sub-song within the file in milliseconds.
+ * Unused if zero.
+ */
+ unsigned end_ms;
+
char uri[sizeof(int)];
};