summaryrefslogtreecommitdiffstats
path: root/apps/metadata.c
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-02-12 03:21:37 +0000
committerMohamed Tarek <mt@rockbox.org>2010-02-12 03:21:37 +0000
commit23ac6ffaa1efeea6417f7d064c0b8f4f280aa0cd (patch)
treea8a71c484048b6d199f587875c15a856e8910640 /apps/metadata.c
parent5039cc716de37035a60cc62585f534dcdd7fa903 (diff)
downloadrockbox-23ac6ffaa1efeea6417f7d064c0b8f4f280aa0cd.tar.gz
rockbox-23ac6ffaa1efeea6417f7d064c0b8f4f280aa0cd.tar.bz2
rockbox-23ac6ffaa1efeea6417f7d064c0b8f4f280aa0cd.zip
Add support for Sony OMA file format. Currently only supports ATRAC3 (without DRM), and seeks. Tested on sansa
e200. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24615 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata.c')
-rw-r--r--apps/metadata.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index 6281a8526c..619a06e72d 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -162,6 +162,9 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] =
/* Atari TM2 File */
[AFMT_TM2] =
AFMT_ENTRY("TM2", "asap", NULL, "tm2\0" ),
+ /* Atrac3 in Sony OMA Container */
+ [AFMT_OMA_ATRAC3] =
+ AFMT_ENTRY("ATRAC3", "atrac3_oma", NULL, "oma\0aa3\0" ),
#endif
};
@@ -437,6 +440,13 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname)
return false;
}
break;
+ case AFMT_OMA_ATRAC3:
+ if (!get_oma_metadata(fd, id3))
+ {
+ DEBUGF("get_oma_metadata error\n");
+ return false;
+ }
+ break;
#endif /* CONFIG_CODEC == SWCODEC */