summaryrefslogtreecommitdiff
path: root/apps/metadata.c
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2009-07-06 22:40:45 +0000
committerMohamed Tarek <mt@rockbox.org>2009-07-06 22:40:45 +0000
commite184ef1027ba8f41aca65dbae2af05662b23c722 (patch)
treeb7b108acf795d52e0c4f9f841906b02d1df3f773 /apps/metadata.c
parent03fe562a95a2b4fe4b3e316d3877140c3b4c822f (diff)
Adding support for rm playback. Only cook codec is supported for now and no seeking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21695 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata.c')
-rw-r--r--apps/metadata.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index 0892fc65fd..6003e1977e 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -115,6 +115,9 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] =
/* Amiga SAP File */
[AFMT_SAP] =
AFMT_ENTRY("SAP", "asap", NULL, "sap\0" ),
+ /* Cook in RM/RA */
+ [AFMT_COOK] =
+ AFMT_ENTRY("Cook", "cook", NULL, "rm\0ra\0" ),
#endif
};
@@ -372,6 +375,14 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname)
id3->filesize = filesize(fd);
id3->genre_string = id3_get_num_genre(36);
break;
+
+ case AFMT_COOK:
+ if (!get_rm_metadata(fd, id3))
+ {
+ DEBUGF("get_rm_metadata error\n");
+ return false;
+ }
+ break;
#endif /* CONFIG_CODEC == SWCODEC */