From a038bca74580359a883dc8d526feb7104a677d8c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Dec 2009 22:59:13 +0100 Subject: 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. --- src/song.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/song.h') diff --git a/src/song.h b/src/song.h index 832f3d70..2bebee64 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)]; }; -- cgit v1.2.3