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