summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-16 21:43:57 +0000
committerDave Chapman <dave@dchapman.com>2005-02-16 21:43:57 +0000
commitb64d95fe855901e66cac71973c8ec4b3ca50c55f (patch)
treebad16b58ae6732da07b7605c39afce777535a9b1 /apps/plugins
parentdbf7f51cf26b75c5aa4fc7c5aa39535bfc4fec48 (diff)
Add flac2wav decoder - hardcoded output is /flactest.wav
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5989 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/Makefile2
-rw-r--r--apps/plugins/SOURCES1
-rw-r--r--apps/plugins/lib/xxx2wav.h1
-rw-r--r--apps/plugins/viewers.config1
4 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index 8b7243b127..0c90bde9b1 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -17,7 +17,7 @@ ifdef APPEXTRA
endif
ifdef SOFTWARECODECS
- CODECLIBS = -lmad -la52
+ CODECLIBS = -lmad -la52 -lFLAC
endif
LDS := plugin.lds
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index caa77f080f..abdc10453f 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -66,4 +66,5 @@ alpine_cdc.c
#if CONFIG_HWCODEC == MASNONE /* software codec platforms */
mpa2wav.c
a52towav.c
+flac2wav.c
#endif
diff --git a/apps/plugins/lib/xxx2wav.h b/apps/plugins/lib/xxx2wav.h
index 27e293f797..e89361c46a 100644
--- a/apps/plugins/lib/xxx2wav.h
+++ b/apps/plugins/lib/xxx2wav.h
@@ -26,6 +26,7 @@ typedef struct {
off_t curpos;
off_t filesize;
int samplerate;
+ int bitspersample;
int channels;
int frames_decoded;
unsigned long total_samples;
diff --git a/apps/plugins/viewers.config b/apps/plugins/viewers.config
index bb5752c9db..d22e53dba0 100644
--- a/apps/plugins/viewers.config
+++ b/apps/plugins/viewers.config
@@ -10,3 +10,4 @@ mp2,mpa2wav.rock, 00 00 00 00 00 00
mp3,mpa2wav.rock, 00 00 00 00 00 00
ac3,a52towav.rock, 00 00 00 00 00 00
a52,a52towav.rock, 00 00 00 00 00 00
+flac,flac2wav.rock, 00 00 00 00 00 00