diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-02-24 11:46:29 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-02-24 11:46:29 +0000 |
commit | 45e009a364d3ee105bf6b2ebb2e28445c9c6e3fd (patch) | |
tree | 7c0cff93773ebb8d88a4fc0fecd126fcbee46124 /apps/metadata.c | |
parent | aa58715a54cb62638b263b7942c46e25ec928534 (diff) | |
download | rockbox-45e009a364d3ee105bf6b2ebb2e28445c9c6e3fd.tar.gz rockbox-45e009a364d3ee105bf6b2ebb2e28445c9c6e3fd.zip |
add SMAF codec (.mmf extension)(FS#10432)
This codec supports only wave data (ADPCM and PCM).
It does not support MIDI, picture, and movie.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24878 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 ce3a4ec22a..36e97268ea 100644 --- a/apps/metadata.c +++ b/apps/metadata.c | |||
@@ -165,6 +165,9 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] = | |||
165 | /* Atrac3 in Sony OMA Container */ | 165 | /* Atrac3 in Sony OMA Container */ |
166 | [AFMT_OMA_ATRAC3] = | 166 | [AFMT_OMA_ATRAC3] = |
167 | AFMT_ENTRY("ATRAC3", "atrac3_oma", NULL, "oma\0aa3\0" ), | 167 | AFMT_ENTRY("ATRAC3", "atrac3_oma", NULL, "oma\0aa3\0" ), |
168 | /* SMAF (Synthetic music Mobile Application Format) */ | ||
169 | [AFMT_SMAF] = | ||
170 | AFMT_ENTRY("SMAF", "smaf", NULL, "mmf\0" ), | ||
168 | #endif | 171 | #endif |
169 | }; | 172 | }; |
170 | 173 | ||
@@ -447,6 +450,14 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname) | |||
447 | return false; | 450 | return false; |
448 | } | 451 | } |
449 | break; | 452 | break; |
453 | |||
454 | case AFMT_SMAF: | ||
455 | if (!get_smaf_metadata(fd, id3)) | ||
456 | { | ||
457 | DEBUGF("get_smaf_metadata error\n"); | ||
458 | return false; | ||
459 | } | ||
460 | break; | ||
450 | 461 | ||
451 | #endif /* CONFIG_CODEC == SWCODEC */ | 462 | #endif /* CONFIG_CODEC == SWCODEC */ |
452 | 463 | ||