From 45e009a364d3ee105bf6b2ebb2e28445c9c6e3fd Mon Sep 17 00:00:00 2001 From: Yoshihisa Uchida Date: Wed, 24 Feb 2010 11:46:29 +0000 Subject: 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 --- apps/metadata.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'apps/metadata.c') 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 */ -- cgit v1.2.3