From 9f4bd8712fc122f61ec162c544d613a95c3ca66e Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Wed, 14 Feb 2007 14:40:24 +0000 Subject: Cuesheet support by Jonathan Gordon and me (FS #6460). Everytime an audio file is loaded, a cue file with the same name is searched for. A setting allows to disable this (default is off). Cuesheet files can also be viewed in the file browser. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12304 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/metadata.c') diff --git a/apps/metadata.c b/apps/metadata.c index fbe7bfc233..ae2a8ecda8 100644 --- a/apps/metadata.c +++ b/apps/metadata.c @@ -30,6 +30,7 @@ #include "replaygain.h" #include "debug.h" #include "system.h" +#include "cuesheet.h" enum tagtype { TAGTYPE_APE = 1, TAGTYPE_VORBIS }; @@ -2272,6 +2273,11 @@ bool get_metadata(struct track_info* track, int fd, const char* trackname, /* We have successfully read the metadata from the file */ + if (cuesheet_is_enabled() && look_for_cuesheet_file(trackname)) + { + track->id3.cuesheet_type = 1; + } + lseek(fd, 0, SEEK_SET); strncpy(track->id3.path, trackname, sizeof(track->id3.path)); track->taginfo_ready = true; -- cgit v1.2.3