diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-05-13 12:40:09 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-05-13 12:40:09 +0000 |
commit | 0f5c6d47d4fdd17260b840024880ba6dd3fdf935 (patch) | |
tree | 6d2526a58816aa9f6431a22a8f1a56278a445dfd /apps/metadata.c | |
parent | 889b4a8ce838bd4191c736d01d9665c177e6d390 (diff) | |
download | rockbox-0f5c6d47d4fdd17260b840024880ba6dd3fdf935.tar.gz rockbox-0f5c6d47d4fdd17260b840024880ba6dd3fdf935.zip |
add True Audio (TTA) codec
decoding speed iPod video ~153%
But in some players, the decoding speed is not enough.
(e.g., H180 52.4% (thanks amiconn), H300 55.09% (thanks n1s))
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25994 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata.c')
-rw-r--r-- | apps/metadata.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/metadata.c b/apps/metadata.c index 97f376035d..076b753958 100644 --- a/apps/metadata.c +++ b/apps/metadata.c | |||
@@ -179,6 +179,9 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] = | |||
179 | /* Wave64 */ | 179 | /* Wave64 */ |
180 | [AFMT_WAVE64] = | 180 | [AFMT_WAVE64] = |
181 | AFMT_ENTRY("WAVE64", "wav64", NULL, "w64\0" ), | 181 | AFMT_ENTRY("WAVE64", "wav64", NULL, "w64\0" ), |
182 | /* True Audio */ | ||
183 | [AFMT_TTA] = | ||
184 | AFMT_ENTRY("TTA", "tta", NULL, "tta\0" ), | ||
182 | #endif | 185 | #endif |
183 | }; | 186 | }; |
184 | 187 | ||
@@ -494,6 +497,14 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname) | |||
494 | } | 497 | } |
495 | break; | 498 | break; |
496 | 499 | ||
500 | case AFMT_TTA: | ||
501 | if (!get_tta_metadata(fd, id3)) | ||
502 | { | ||
503 | DEBUGF("get_tta_metadata error\n"); | ||
504 | return false; | ||
505 | } | ||
506 | break; | ||
507 | |||
497 | #endif /* CONFIG_CODEC == SWCODEC */ | 508 | #endif /* CONFIG_CODEC == SWCODEC */ |
498 | 509 | ||
499 | default: | 510 | default: |