summaryrefslogtreecommitdiffstats
path: root/apps/metadata.c
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-02-24 11:46:29 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-02-24 11:46:29 +0000
commit45e009a364d3ee105bf6b2ebb2e28445c9c6e3fd (patch)
tree7c0cff93773ebb8d88a4fc0fecd126fcbee46124 /apps/metadata.c
parentaa58715a54cb62638b263b7942c46e25ec928534 (diff)
downloadrockbox-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.c11
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] =
/* Atrac3 in Sony OMA Container */
[AFMT_OMA_ATRAC3] =
AFMT_ENTRY("ATRAC3", "atrac3_oma", NULL, "oma\0aa3\0" ),
+ /* SMAF (Synthetic music Mobile Application Format) */
+ [AFMT_SMAF] =
+ AFMT_ENTRY("SMAF", "smaf", NULL, "mmf\0" ),
#endif
};
@@ -447,6 +450,14 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname)
return false;
}
break;
+
+ case AFMT_SMAF:
+ if (!get_smaf_metadata(fd, id3))
+ {
+ DEBUGF("get_smaf_metadata error\n");
+ return false;
+ }
+ break;
#endif /* CONFIG_CODEC == SWCODEC */