summaryrefslogtreecommitdiff
path: root/apps/cuesheet.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-07-20 05:18:18 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-07-20 05:18:18 +0000
commit24b136f62de82d7419751b6aaeae0ad3d8497bea (patch)
treeb9bcfd07ca26f3da2f0ce500fc39e0719b3cbb8a /apps/cuesheet.h
parent4c4fb82d9c112ccbcc4c94a7d85fe82d09801844 (diff)
downloadrockbox-24b136f62de82d7419751b6aaeae0ad3d8497bea.tar.gz
rockbox-24b136f62de82d7419751b6aaeae0ad3d8497bea.zip
rework cuesheet support:
swcodec: search for a .cue during buffering (with the possibility of adding embedded cuesheets later) hwcodec: search for a .cue when the id3 info for the current track is requested for the first time (disk should be spining so non issue) major beenfit from this is simplofy cuesheet handling code a bit... if mp3entry.cuesheet != NULL then there is a valid cuesheet.. no need to worry about if its enabled and preloaded. There is the possibility of putting the next/prev subtrack handling inside the playback code (as well as the id3 updating stuff (see FS#9789 for more info), but thats probably not a good idea. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21978 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/cuesheet.h')
-rw-r--r--apps/cuesheet.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/cuesheet.h b/apps/cuesheet.h
index 41ee9be397..22ad92fdd3 100644
--- a/apps/cuesheet.h
+++ b/apps/cuesheet.h
@@ -52,14 +52,6 @@ struct cuesheet {
52 struct cue_track_info *curr_track; 52 struct cue_track_info *curr_track;
53}; 53};
54 54
55extern struct cuesheet *curr_cue;
56
57/* returns true if cuesheet support is initialised */
58bool cuesheet_is_enabled(void);
59
60/* allocates the cuesheet buffer */
61void cuesheet_init(void);
62
63/* looks if there is a cuesheet file that has a name matching "trackpath" */ 55/* looks if there is a cuesheet file that has a name matching "trackpath" */
64bool look_for_cuesheet_file(const char *trackpath, char *found_cue_path); 56bool look_for_cuesheet_file(const char *trackpath, char *found_cue_path);
65 57
@@ -90,4 +82,7 @@ void cue_draw_markers(struct screen *screen, unsigned long tracklen,
90 int x1, int x2, int y, int h); 82 int x1, int x2, int y, int h);
91#endif 83#endif
92 84
85/* check if the subtrack has changed */
86bool cuesheet_subtrack_changed(struct mp3entry *id3);
87
93#endif 88#endif