From b64d95fe855901e66cac71973c8ec4b3ca50c55f Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Wed, 16 Feb 2005 21:43:57 +0000 Subject: Add flac2wav decoder - hardcoded output is /flactest.wav git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5989 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/Makefile | 2 +- apps/plugins/SOURCES | 1 + apps/plugins/lib/xxx2wav.h | 1 + apps/plugins/viewers.config | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) (limited to 'apps') 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 -- cgit v1.2.3