diff options
author | Max Kellermann <max@duempel.org> | 2009-12-25 22:59:13 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-27 14:46:04 +0100 |
commit | a038bca74580359a883dc8d526feb7104a677d8c (patch) | |
tree | 0ade8231ea065723839086f135d715d4284a21e9 /src/song.h | |
parent | cf38505d8fddbfee431936969e34b9d438243f31 (diff) |
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 'src/song.h')
-rw-r--r-- | src/song.h | 12 |
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)]; }; |