summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-06-11 10:08:17 +0000
committerDave Chapman <dave@dchapman.com>2005-06-11 10:08:17 +0000
commit55ed7d7214684d53c38eb4fe293249e5d3e0ac91 (patch)
tree26432321890d0e8d616b7257807e31a2b8cc7cdd /apps/playback.c
parentc82518ce060d3da4800bcc08fffe910b37711f38 (diff)
First codeca52 (A52 aka AC3 playback) - it is already faster than realtime, with zero optimisations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6668 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 2276a4588b..faea55aec1 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -66,6 +66,7 @@ static volatile bool paused;
#define CODEC_MPA_L3 "/.rockbox/codecs/codecmpa.rock";
#define CODEC_FLAC "/.rockbox/codecs/codecflac.rock";
#define CODEC_WAV "/.rockbox/codecs/codecwav.rock";
+#define CODEC_A52 "/.rockbox/codecs/codeca52.rock";
#define AUDIO_DEFAULT_WATERMARK (1024*256)
#define AUDIO_DEFAULT_FILECHUNK (1024*32)
@@ -413,7 +414,7 @@ int probe_file_format(const char *filename)
return AFMT_APE;
else if (!strcasecmp("wma", suffix))
return AFMT_WMA;
- else if (!strcasecmp("a52", suffix))
+ else if ((!strcasecmp("a52", suffix)) || (!strcasecmp("ac3", suffix)))
return AFMT_A52;
else if (!strcasecmp("rm", suffix))
return AFMT_REAL;
@@ -515,6 +516,10 @@ bool loadcodec(const char *trackname, bool start_play)
logf("Codec: FLAC");
codec_path = CODEC_FLAC;
break;
+ case AFMT_A52:
+ logf("Codec: A52");
+ codec_path = CODEC_A52;
+ break;
default:
logf("Codec: Unsupported");
snprintf(msgbuf, sizeof(msgbuf)-1, "No codec for: %s", trackname);