dccp_recv recv_common write_common file_write audiod_command
client_common recv stdout filter stdin audioc write client
exec send_common ggo udp_recv color fec fecdec_filter
- prebuffer_filter bitstream imdct
+ prebuffer_filter bitstream imdct check_wav
wma_afh wma_common wmadec_filter buffer_tree crypt_common
- gui gui_theme sideband"
+ gui gui_theme sideband afh_recv play"
-executables="recv filter audioc write client afh audiod"
+executables="recv filter audioc write client afh audiod play"
-recv_cmdline_objs="add_cmdline(recv http_recv dccp_recv udp_recv)"
+recv_cmdline_objs="add_cmdline(recv http_recv dccp_recv udp_recv afh_recv)"
+
+recv_errlist_objs="
+ http_recv recv_common recv time string net dccp_recv fd
+ sched stdout ggo udp_recv buffer_tree afh_recv afh_common
+ wma_afh wma_common mp3_afh
+"
-recv_errlist_objs="http_recv recv_common recv time string net dccp_recv
- fd sched stdout ggo udp_recv buffer_tree"
recv_ldflags=""
filter_cmdline_objs="add_cmdline(filter compress_filter amp_filter prebuffer_filter)"
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
LIBS="$OLD_LIBS"
+ ############################################################# libsamplerate
+ OLD_CPPFLAGS="$CPPFLAGS"
+ OLD_LD_FLAGS="$LDFLAGS"
+ OLD_LIBS="$LIBS"
+
+ have_samplerate="yes"
+ AC_ARG_WITH(samplerate_headers, [AS_HELP_STRING(--with-samplerate-headers=dir,
+ [look for samplerate headers also in dir])])
+ if test -n "$with_samplerate_headers"; then
+ samplerate_cppflags="-I$with_samplerate_headers"
+ CPPFLAGS="$CPPFLAGS $samplerate_cppflags"
+ fi
+ AC_ARG_WITH(samplerate_libs, [AS_HELP_STRING(--with-samplerate-libs=dir,
+ [look for samplerate libs also in dir])])
+ if test -n "$with_samplerate_libs"; then
+ samplerate_libs="-L$with_samplerate_libs"
+ LDFLAGS="$LDFLAGS $samplerate_libs"
+ fi
+
+ AC_CHECK_HEADER(samplerate.h, [], have_samplerate=no)
+ AC_CHECK_LIB([samplerate], [src_process], [], have_samplerate=no, [])
+
+ if test "$have_samplerate" = "yes"; then
+ all_errlist_objs="$all_errlist_objs resample_filter"
+ filter_errlist_objs="$filter_errlist_objs resample_filter check_wav"
+ filter_cmdline_objs="$filter_cmdline_objs add_cmdline(resample_filter)"
+ audiod_errlist_objs="$audiod_errlist_objs resample_filter check_wav"
+ audiod_cmdline_objs="$audiod_cmdline_objs add_cmdline(resample_filter)"
++ play_errlist_objs="$play_errlist_objs resample_filter check_wav"
++ play_cmdline_objs="$play_cmdline_objs add_cmdline(resample_filter)"
+ filter_ldflags="$filter_ldflags $samplerate_libs -lsamplerate"
+ audiod_ldflags="$audiod_ldflags $samplerate_libs -lsamplerate"
++ play_ldflags="$play_ldflags $samplerate_libs -lsamplerate"
+ filters="$filters resample"
+ AC_SUBST(samplerate_cppflags)
+ else
+ AC_MSG_WARN([no resample support in para_audiod/para_filter])
+ fi
+ CPPFLAGS="$OLD_CPPFLAGS"
+ LDFLAGS="$OLD_LDFLAGS"
+ LIBS="$OLD_LIBS"
############################################################# error2.h
AC_MSG_NOTICE(creating error2.h)
for i in $executables; do