summaryrefslogtreecommitdiff
path: root/apps/cuesheet.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-06-06 06:28:40 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-06-06 06:28:40 +0000
commitb8d98fcc1991a60ec1cde475b68fcda67153528b (patch)
treea9e33268e8b289983ee753961894d0608351dc5f /apps/cuesheet.h
parentb807cb0808b2c045e0fdcd332c711a713eb25032 (diff)
downloadrockbox-b8d98fcc1991a60ec1cde475b68fcda67153528b.tar.gz
rockbox-b8d98fcc1991a60ec1cde475b68fcda67153528b.zip
Change cuesheet handling so the id3 info is not spoofed anymore. If something wants the subtracks info it is easy to get to. This makes next track display in the skins show the next subtrack if we are in a cuesheet
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26611 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/cuesheet.h')
-rw-r--r--apps/cuesheet.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/cuesheet.h b/apps/cuesheet.h
index 8e9266416d..451fff5dbe 100644
--- a/apps/cuesheet.h
+++ b/apps/cuesheet.h
@@ -26,6 +26,7 @@
26#include "screens.h" 26#include "screens.h"
27#include "file.h" 27#include "file.h"
28#include "metadata.h" 28#include "metadata.h"
29#include "skin_engine/skin_tokens.h"
29 30
30#define MAX_NAME 80 /* Max length of information strings */ 31#define MAX_NAME 80 /* Max length of information strings */
31#define MAX_TRACKS 99 /* Max number of tracks in a cuesheet */ 32#define MAX_TRACKS 99 /* Max number of tracks in a cuesheet */
@@ -69,8 +70,9 @@ bool display_cuesheet_content(char* filename);
69/* finds the index of the current track played within a cuesheet */ 70/* finds the index of the current track played within a cuesheet */
70int cue_find_current_track(struct cuesheet *cue, unsigned long curpos); 71int cue_find_current_track(struct cuesheet *cue, unsigned long curpos);
71 72
72/* update the id3 info to that of the currently playing track in the cuesheet */ 73/* Get the id3 fields from the cuesheet */
73void cue_spoof_id3(struct cuesheet *cue, struct mp3entry *id3); 74const char *get_cuesheetid3_token(struct wps_token *token, struct mp3entry *id3,
75 int offset_tracks, char *buf, int buf_size);
74 76
75/* skip to next track in the cuesheet towards "direction" (which is 1 or -1) */ 77/* skip to next track in the cuesheet towards "direction" (which is 1 or -1) */
76bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_pos); 78bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_pos);