writers="file"
default_writer="FILE_WRITE"
-play_errlist_objs="
- play
- fd
- sched
- ggo
- buffer_tree
- time
- string
- net
- afh_recv
- afh_common
- wma_afh
- wma_common
- mp3_afh
- recv_common
- udp_recv
- http_recv
- dccp_recv
- filter_common
- fec
- bitstream
- imdct
- wav_filter
- compress_filter
- amp_filter
- prebuffer_filter
- fecdec_filter
- wmadec_filter
- write_common
- file_write
- version
-"
-play_cmdline_objs="
- http_recv
- dccp_recv
- udp_recv
- afh_recv
- compress_filter
- amp_filter
- prebuffer_filter
- file_write
- play
-"
-play_ldflags="-lm"
################################################################## clock_gettime
clock_gettime_lib=
AC_CHECK_LIB([c], [clock_gettime], [clock_gettime_lib=c], [
audiod_errlist_objs="$audiod_errlist_objs osx_write ipc"
audiod_cmdline_objs="$audiod_cmdline_objs osx_write.cmdline"
- play_errlist_objs="$play_errlist_objs osx_write ipc"
- play_cmdline_objs="$play_cmdline_objs osx_write.cmdline"
-
write_errlist_objs="$write_errlist_objs osx_write ipc"
write_cmdline_objs="$write_cmdline_objs osx_write.cmdline"
writers="$writers osx"
fi
AC_SUBST(ogg_ldflags)
server_errlist_objs="$server_errlist_objs ogg_afh_common"
- play_errlist_objs="$play_errlist_objs ogg_afh_common"
fi
if test "$have_vorbis" = "yes"; then
AC_DEFINE(HAVE_OGGVORBIS, 1, define to 1 to turn on ogg/vorbis support)
server_errlist_objs="$server_errlist_objs ogg_afh"
audiod_errlist_objs="$audiod_errlist_objs oggdec_filter"
- play_errlist_objs="$play_errlist_objs oggdec_filter ogg_afh"
audiod_audio_formats="$audiod_audio_formats ogg"
audio_format_handlers="$audio_format_handlers ogg"
server_errlist_objs="$server_errlist_objs spx_afh spx_common"
audiod_errlist_objs="$audiod_errlist_objs spxdec_filter spx_common"
- play_errlist_objs="$play_errlist_objs spxdec_filter spx_afh spx_common"
audiod_audio_formats="$audiod_audio_formats spx"
audio_format_handlers="$audio_format_handlers spx"
server_errlist_objs="$server_errlist_objs opus_afh opus_common"
audiod_errlist_objs="$audiod_errlist_objs opusdec_filter opus_common"
- play_errlist_objs="$play_errlist_objs opusdec_filter opus_afh opus_common"
audiod_audio_formats="$audiod_audio_formats opus"
audio_format_handlers="$audio_format_handlers opus"
AC_SUBST(faad_ldflags)
audiod_errlist_objs="$audiod_errlist_objs aacdec_filter aac_common"
- play_errlist_objs="$play_errlist_objs aacdec_filter aac_afh aac_common"
server_errlist_objs="$server_errlist_objs aac_afh aac_common"
audiod_audio_formats="$audiod_audio_formats aac"
mad_ldflags="$mad_libs -lmad"
AC_SUBST(mad_ldflags)
audiod_cmdline_objs="$audiod_cmdline_objs mp3dec_filter"
- play_cmdline_objs="$play_cmdline_objs mp3dec_filter"
audiod_errlist_objs="$audiod_errlist_objs mp3dec_filter"
- play_errlist_objs="$play_errlist_objs mp3dec_filter"
audiod_audio_formats="$audiod_audio_formats mp3"
else
AC_MSG_WARN([no mp3dec support in para_audiod/para_filter])
AC_SUBST(flac_ldflags)
audiod_errlist_objs="$audiod_errlist_objs flacdec_filter"
- play_errlist_objs="$play_errlist_objs flacdec_filter flac_afh"
server_errlist_objs="$server_errlist_objs flac_afh"
audio_format_handlers="$audio_format_handlers flac"
audiod_audio_formats="$audiod_audio_formats flac"
AC_CHECK_HEADER(sys/soundcard.h, [
audiod_errlist_objs="$audiod_errlist_objs oss_write"
- play_errlist_objs="$play_errlist_objs oss_write"
audiod_cmdline_objs="$audiod_cmdline_objs oss_write"
- play_cmdline_objs="$play_cmdline_objs oss_write"
write_errlist_objs="$write_errlist_objs oss_write"
write_cmdline_objs="$write_cmdline_objs oss_write"
AC_SUBST(alsa_ldflags)
audiod_errlist_objs="$audiod_errlist_objs alsa_write"
audiod_cmdline_objs="$audiod_cmdline_objs alsa_write"
- play_errlist_objs="$play_errlist_objs alsa_write"
- play_cmdline_objs="$play_cmdline_objs alsa_write"
write_errlist_objs="$write_errlist_objs alsa_write"
write_cmdline_objs="$write_cmdline_objs alsa_write"
audiod_errlist_objs="$audiod_errlist_objs ao_write"
audiod_cmdline_objs="$audiod_cmdline_objs ao_write"
- play_errlist_objs="$play_errlist_objs ao_write"
- play_cmdline_objs="$play_cmdline_objs ao_write"
-
write_errlist_objs="$write_errlist_objs ao_write"
write_cmdline_objs="$write_cmdline_objs ao_write"
writers="$writers ao"
AC_SUBST(readline_ldflags)
client_errlist_objs="$client_errlist_objs interactive"
audioc_errlist_objs="$audioc_errlist_objs buffer_tree interactive sched time"
- play_errlist_objs="$play_errlist_objs interactive"
AC_DEFINE(HAVE_READLINE, 1, define to 1 to turn on readline support)
else
AC_MSG_WARN([libreadline not found or unusable])
audiod_errlist_objs="$audiod_errlist_objs resample_filter check_wav"
audiod_cmdline_objs="$audiod_cmdline_objs resample_filter"
- play_errlist_objs="$play_errlist_objs resample_filter check_wav"
- play_cmdline_objs="$play_cmdline_objs resample_filter"
else
AC_MSG_WARN([no resample support in para_audiod/para_filter])
fi
AC_SUBST(afh_objs, add_dot_o($afh_objs))
AC_DEFINE_UNQUOTED(INIT_AFH_ERRLISTS,
objlist_to_errlist($afh_errlist_objs), errors used by para_afh)
+########################################################################## play
+play_errlist_objs="
+ play
+ fd
+ sched
+ ggo
+ buffer_tree
+ time
+ string
+ net
+ afh_recv
+ afh_common
+ wma_afh
+ wma_common
+ mp3_afh
+ recv_common
+ udp_recv
+ http_recv
+ dccp_recv
+ filter_common
+ fec
+ bitstream
+ imdct
+ wav_filter
+ compress_filter
+ amp_filter
+ prebuffer_filter
+ fecdec_filter
+ wmadec_filter
+ write_common
+ file_write
+ version
+"
+play_cmdline_objs="
+ http_recv
+ dccp_recv
+ udp_recv
+ afh_recv
+ compress_filter
+ amp_filter
+ prebuffer_filter
+ file_write
+ play
+"
+if test "$have_core_audio" = "yes"; then
+ play_errlist_objs="$play_errlist_objs osx_write ipc"
+ play_cmdline_objs="$play_cmdline_objs osx_write.cmdline"
+fi
+if test "$have_vorbis" = "yes" || \
+ test "$have_speex" = "yes" || \
+ test "$have_opus" = "yes"; then
+ play_errlist_objs="$play_errlist_objs ogg_afh_common"
+fi
+if test "$have_vorbis" = "yes"; then
+ play_errlist_objs="$play_errlist_objs oggdec_filter ogg_afh"
+fi
+if test "$have_speex" = "yes"; then
+ play_errlist_objs="$play_errlist_objs spxdec_filter spx_afh spx_common"
+fi
+if test "$have_opus" = "yes"; then
+ play_errlist_objs="$play_errlist_objs opusdec_filter opus_afh opus_common"
+fi
+if test "$have_faad" = "yes"; then
+ play_errlist_objs="$play_errlist_objs aacdec_filter aac_afh aac_common"
+fi
+if test "$have_mad" = "yes"; then
+ play_cmdline_objs="$play_cmdline_objs mp3dec_filter"
+ play_errlist_objs="$play_errlist_objs mp3dec_filter"
+fi
+if test "$have_flac" = "yes"; then
+ play_errlist_objs="$play_errlist_objs flacdec_filter flac_afh"
+fi
+if test "$have_oss" = "yes"; then
+ play_errlist_objs="$play_errlist_objs oss_write"
+ play_cmdline_objs="$play_cmdline_objs oss_write"
+fi
+if test "$have_alsa" = "yes"; then
+ play_errlist_objs="$play_errlist_objs alsa_write"
+ play_cmdline_objs="$play_cmdline_objs alsa_write"
+fi
+if test "$have_ao" = "yes"; then
+ play_errlist_objs="$play_errlist_objs ao_write"
+ play_cmdline_objs="$play_cmdline_objs ao_write"
+fi
+if test "$have_readline" = "yes"; then
+ play_errlist_objs="$play_errlist_objs interactive"
+fi
+if test "$have_samplerate" = "yes"; then
+ play_errlist_objs="$play_errlist_objs resample_filter check_wav"
+ play_cmdline_objs="$play_cmdline_objs resample_filter"
+fi
+
+play_objs="add_cmdline($play_cmdline_objs) $play_errlist_objs"
+AC_SUBST(play_objs, add_dot_o($play_objs))
+AC_DEFINE_UNQUOTED(INIT_PLAY_ERRLISTS,
+ objlist_to_errlist($play_errlist_objs), errors used by para_play)
############################################################# error2.h
# these are always built
all_errlist_objs="
write_objs="add_cmdline($write_cmdline_objs) $write_errlist_objs"
client_objs="add_cmdline($client_cmdline_objs) $client_errlist_objs"
audioc_objs="add_cmdline($audioc_cmdline_objs) $audioc_errlist_objs"
-play_objs="add_cmdline($play_cmdline_objs) $play_errlist_objs"
-gui_objs="add_cmdline($gui_cmdline_objs) $gui_errlist_objs"
AC_SUBST(filter_objs, add_dot_o($filter_objs))
AC_DEFINE_UNQUOTED(INIT_FILTER_ERRLISTS,
AC_DEFINE_UNQUOTED(INIT_GUI_ERRLISTS,
objlist_to_errlist($gui_errlist_objs), errors used by para_gui)
-AC_SUBST(play_objs, add_dot_o($play_objs))
-AC_SUBST(play_ldflags, $play_ldflags)
-AC_DEFINE_UNQUOTED(INIT_PLAY_ERRLISTS,
- objlist_to_errlist($play_errlist_objs), errors used by para_play)
-
enum="$(for i in $filters; do printf "${i}_FILTER, " | tr '[a-z]' '[A-Z]'; done)"
AC_DEFINE_UNQUOTED(FILTER_ENUM, $enum NUM_SUPPORTED_FILTERS,
enum of supported filters)