X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=afh_common.c;h=1228c0d80e5e8c276072bf38a29b0d1f635f2b74;hb=f48194d3ff2a3983f21cab1553fbe29529f2e790;hp=7ecab4e47a9bd7e47bcc7e378043d62d663cf343;hpb=0e3764a52eb6af123414ce07bcceb2c8bd2836c1;p=paraslash.git diff --git a/afh_common.c b/afh_common.c index 7ecab4e4..1228c0d8 100644 --- a/afh_common.c +++ b/afh_common.c @@ -9,7 +9,6 @@ #include /* mmap */ #include /* gettimeofday */ #include -#include #include #include "para.h" @@ -29,6 +28,9 @@ void mp3_init(struct audio_format_handler *); #ifdef HAVE_SPEEX void spx_afh_init(struct audio_format_handler *); #endif +#ifdef HAVE_FLAC + void flac_afh_init(struct audio_format_handler *); +#endif void wma_afh_init(struct audio_format_handler *); /** @@ -68,6 +70,12 @@ static struct audio_format_handler afl[] = { .name = "spx", #ifdef HAVE_SPEEX .init = spx_afh_init, +#endif + }, + { + .name = "flac", +#ifdef HAVE_FLAC + .init = flac_afh_init, #endif }, { @@ -214,7 +222,7 @@ success: * * \param i The audio format number. * - * This returns a pointer to statically allocated memory so it + * \return This returns a pointer to statically allocated memory so it * must not be freed by the caller. */ const char *audio_format_name(int i)