From d00f1d599a7fe422da450836774fd6ce2ed09b3d Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Fri, 8 Dec 2006 13:55:14 +0000 Subject: Add "m4b" to the list of supported filename extensions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11689 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/stats.c | 4 ++-- apps/tree.c | 1 + firmware/id3.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c index 0a1f2e48f9..8b02152a1b 100644 --- a/apps/plugins/stats.c +++ b/apps/plugins/stats.c @@ -64,8 +64,8 @@ static int fontwidth, fontheight; /* TODO: Better get the exts from the filetypes var in tree.c */ const char *music_exts[] = {"mp3","mp2","mp1","mpa","ogg", - "wav","flac","ac3","a52","mpc","wv","m4a","mp4","shn", - "aif","aiff"}; + "wav","flac","ac3","a52","mpc","wv","m4a","m4b","mp4", + "shn","aif","aiff"}; void prn(const char *str, int y) { diff --git a/apps/tree.c b/apps/tree.c index 24b5c2114c..17da91d72b 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -101,6 +101,7 @@ const struct filetype filetypes[] = { { "mpc", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, { "wv", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, { "m4a", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, + { "m4b", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, { "mp4", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, { "shn", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, { "aif", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, diff --git a/firmware/id3.c b/firmware/id3.c index 74cea7f037..21c6730e29 100644 --- a/firmware/id3.c +++ b/firmware/id3.c @@ -85,7 +85,7 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] = AFMT_ENTRY("WV", "wavpack", "wavpack_enc", "wv\0" ), /* Apple Lossless Audio Codec */ [AFMT_ALAC] = - AFMT_ENTRY("ALAC", "alac", NULL, "m4a\0" ), + AFMT_ENTRY("ALAC", "alac", NULL, "m4a\0m4b\0" ), /* Advanced Audio Coding in M4A container */ [AFMT_AAC] = AFMT_ENTRY("AAC", "aac", NULL, "mp4\0" ), -- cgit v1.2.3