search for: have_mad

Displaying 14 results from an estimated 14 matches for "have_mad".

Did you mean: have_many
2007 Mar 19
0
2 commits - configure.ac
...) diff --git a/configure.ac b/configure.ac index 7f41b65..6ea8b8d 100644 --- a/configure.ac +++ b/configure.ac @@ -135,10 +135,22 @@ if test "$HAVE_CAIRO" = "no"; then AC_MSG_ERROR([cannot find cairo, which is required for build]) fi -AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_MAD="yes" MAD_LIBS="-lmad", HAVE_MAD="no") -AC_SUBST(MAD_LIBS) -if test "x$HAVE_MAD" = xyes; then - AC_DEFINE(HAVE_MAD, 1, [Define if mad is enabled]) +AC_ARG_ENABLE(mad, + AS_HELP_STRING([--enable-mad], + [enable mad audio (default=yes)])], + enable_mad=$enab...
2007 Oct 25
0
[PATCH] Fix logic in mad detection
..._STRING([--enable-mad], [enable mad audio (default=yes)])], - enable_mad=$enableval, - enable_mad="yes") + enable_mad=$enableval) -if test "$enable_mad" = "yes"; then +if test "$enable_mad" != "no"; then AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_MAD="yes" MAD_LIBS="-lmad", HAVE_MAD="no") AC_SUBST(MAD_LIBS) if test "x$HAVE_MAD" = xyes; then AC_DEFINE(HAVE_MAD, 1, [Define if mad is enabled]) else - AC_MSG_ERROR([Couldn't find mad. You might need to install the libmad0-dev package.]) + AC_...
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...it with AC_CHECK_LIB diff --git a/configure.ac b/configure.ac index 924aa4d..bb86e8f 100644 --- a/configure.ac +++ b/configure.ac @@ -206,7 +206,12 @@ AC_ARG_ENABLE(mad, enable_mad="no") if test "$enable_mad" = "yes"; then - AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_MAD="yes" MAD_LIBS="-lmad", HAVE_MAD="no") + PKG_CHECK_EXISTS([mad],[ + MAD_VER=0.15.0 + PKG_CHECK_MODULES(MAD, mad >= $MAD_VER mad >= $MAD_VER, HAVE_MAD=yes, HAVE_MAD=no) + ], [ + AC_CHECK_LIB(mad, mad_decoder_finish, HAV...
2007 Mar 20
3
configure.ac
...Date: Tue Mar 20 19:56:49 2007 +0100 Output some info on what packages might be missing diff --git a/configure.ac b/configure.ac index d4a48c1..e640a78 100644 --- a/configure.ac +++ b/configure.ac @@ -151,7 +151,7 @@ if test "$enable_mad" = "yes"; then if test "x$HAVE_MAD" = xyes; then AC_DEFINE(HAVE_MAD, 1, [Define if mad is enabled]) else - AC_MSG_ERROR([Couldn't find mad.]) + AC_MSG_ERROR([Couldn't find mad. You might need to install the libmad0-dev package.]) fi else AC_MSG_WARN([*** mad audio support was not enabled. ***]) @@ -175,7...
2007 Oct 28
0
5 commits - autogen.sh configure.ac libswfdec-gtk/Makefile.am libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_player.c test/trace
...index 5e8b9aa..77ae76b 100644 --- a/libswfdec/swfdec_codec_audio.c +++ b/libswfdec/swfdec_codec_audio.c @@ -126,12 +126,12 @@ struct { SwfdecAudioDecoder * (* func) (SwfdecAudioCodec, SwfdecAudioFormat); } audio_codecs[] = { { "builtin", swfdec_audio_decoder_builtin_new }, -#ifdef HAVE_MAD - { "mad", swfdec_audio_decoder_mad_new }, -#endif #ifdef HAVE_GST { "gst", swfdec_audio_decoder_gst_new }, #endif +#ifdef HAVE_MAD + { "mad", swfdec_audio_decoder_mad_new }, +#endif #ifdef HAVE_FFMPEG { "ffmpeg", swfdec_audio_decoder_ffmpeg_new },...
2007 Oct 14
0
4 commits - libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_sound.c
...; + if (ret == NULL) + ret = swfdec_audio_decoder_adpcm_new (codec, format); + + return ret; +} + +struct { + const char * name; + SwfdecAudioDecoder * (* func) (SwfdecAudioCodec, SwfdecAudioFormat); +} audio_codecs[] = { + { "builtin", swfdec_audio_decoder_builtin_new }, +#ifdef HAVE_MAD + { "mad", swfdec_audio_decoder_mad_new }, +#endif +#ifdef HAVE_GST + { "gst", swfdec_audio_decoder_gst_new }, +#endif +#ifdef HAVE_FFMPEG + { "ffmpeg", swfdec_audio_decoder_ffmpeg_new }, +#endif + { NULL, } +}; + /** * swfdec_audio_decoder_new: * @format: #Sw...
2007 Apr 08
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_buffer.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c
...codec subsystem Much cleaner API now and should be suitable for hooking in GStreamer diff --git a/libswfdec/Makefile.am b/libswfdec/Makefile.am index fa1abb6..352d46b 100644 --- a/libswfdec/Makefile.am +++ b/libswfdec/Makefile.am @@ -4,15 +4,15 @@ DIST_SUBDIRS = jpeg js CODECS = -if HAVE_MAD -CODECS += swfdec_codec_mad.c -endif if HAVE_FFMPEG CODECS += swfdec_codec_ffmpeg.c endif if HAVE_GST CODECS += swfdec_codec_gst.c endif +if HAVE_MAD +CODECS += swfdec_codec_mad.c +endif lib_LTLIBRARIES = libswfdec-@SWFDEC_MAJORMINOR@.la @@ -31,8 +31,8 @@ libswfdec_@SWFDEC_MAJORMINOR@_la...
2007 Oct 28
0
9 commits - configure.ac libswfdec/swfdec_as_context.c libswfdec/swfdec_audio_internal.h libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_sound.c
...mad, AS_HELP_STRING([--enable-mad], - [enable mad audio (default=yes)])], + [enable mad audio (default=no)])], enable_mad=$enableval, - enable_mad="yes") + enable_mad="no") if test "$enable_mad" = "yes"; then AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_MAD="yes" MAD_LIBS="-lmad", HAVE_MAD="no") @@ -211,9 +211,9 @@ dnl So you'll have to update your ffmpeg checkout if compilation fails. dnl Or you submit a patch that detects ffmpeg reliably on the distros. AC_ARG_ENABLE(ffmpeg, AS_HELP_STRING([--enable-ffmpeg], -...
2007 Oct 26
0
6 commits - configure.ac libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec_video.c player/swfplay.c
...7 @@ if test "$enable_mad" = "yes"; then AC_MSG_ERROR([Couldn't find mad. You might need to install the libmad0-dev package.]) fi else - AC_MSG_WARN([*** mad audio support was not enabled. ***]) + AC_MSG_NOTICE([mad audio support was not enabled.]) fi AM_CONDITIONAL(HAVE_MAD, [test "x$HAVE_MAD" = xyes]) @@ -225,7 +225,7 @@ if test "$enable_ffmpeg" = "yes"; then AC_MSG_ERROR([Couldn't find ffmpeg. You might need to install the libavcodec-dev and libswscale-dev packages.]) fi else - AC_MSG_WARN([*** ffmpeg support was not enable...
2007 Apr 08
0
libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c
...ecoder_gst_new; +#endif + /*** PUBLIC API ***/ /** @@ -137,6 +141,7 @@ swfdec_audio_decoder_new (SwfdecAudioFor ret = swfdec_audio_decoder_uncompressed_new (format, width, data_format); if (ret == NULL) ret = swfdec_audio_decoder_adpcm_new (format, width, data_format); +#if 0 #ifdef HAVE_MAD if (ret == NULL) ret = swfdec_audio_decoder_mad_new (format, width, data_format); @@ -145,12 +150,11 @@ swfdec_audio_decoder_new (SwfdecAudioFor if (ret == NULL) ret = swfdec_audio_decoder_ffmpeg_new (format, width, data_format); #endif -#if 0 +#endif #ifdef HAVE_GST if (ret ==...
2007 Apr 05
0
configure.ac libswfdec/Makefile.am libswfdec/swfdec_codec.c libswfdec/swfdec_codec_gst.c
...ibswfdec/swfdec_codec.c b/libswfdec/swfdec_codec.c index d0f048f..1875572 100644 --- a/libswfdec/swfdec_codec.c +++ b/libswfdec/swfdec_codec.c @@ -27,6 +27,7 @@ /*** DECODER LIST ***/ extern const SwfdecAudioCodec swfdec_codec_adpcm; +extern const SwfdecVideoCodec swfdec_codec_screen; #ifdef HAVE_MAD extern const SwfdecAudioCodec swfdec_codec_mad; @@ -39,7 +40,7 @@ extern const SwfdecVideoCodec swfdec_cod extern const SwfdecVideoCodec swfdec_codec_ffmpeg_screen; #endif -extern const SwfdecVideoCodec swfdec_codec_screen; +extern const SwfdecVideoCodec swfdec_codec_gst_h263; /*** UNCOMPRE...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...uot;swfdec_debug.h" +#include "swfdec_internal.h" /*** UNCOMPRESSED SOUND ***/ @@ -106,22 +107,6 @@ swfdec_audio_decoder_uncompressed_new (S return &dec->decoder; } -/*** DECODER LIST ***/ - -extern SwfdecAudioDecoderNewFunc swfdec_audio_decoder_adpcm_new; - -#ifdef HAVE_MAD -extern SwfdecAudioDecoderNewFunc swfdec_audio_decoder_mad_new; -#endif - -#ifdef HAVE_FFMPEG -extern SwfdecAudioDecoderNewFunc swfdec_audio_decoder_ffmpeg_new; -#endif - -#ifdef HAVE_GST -extern SwfdecAudioDecoderNewFunc swfdec_audio_decoder_gst_new; -#endif - /*** PUBLIC API ***/ /** diff --g...
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...ec_internal.h +++ b/libswfdec/swfdec_internal.h @@ -31,30 +31,30 @@ G_BEGIN_DECLS /* audio codecs */ -SwfdecAudioDecoder * swfdec_audio_decoder_adpcm_new (SwfdecAudioCodec type, +SwfdecAudioDecoder * swfdec_audio_decoder_adpcm_new (guint type, SwfdecAudioFormat format); #ifdef HAVE_MAD -SwfdecAudioDecoder * swfdec_audio_decoder_mad_new (SwfdecAudioCodec type, +SwfdecAudioDecoder * swfdec_audio_decoder_mad_new (guint type, SwfdecAudioFormat format); #endif #ifdef HAVE_FFMPEG -SwfdecAudioDecoder * swfdec_audio_decoder_ffmpeg_new (SwfdecAudioCodec type, +SwfdecAud...
2007 Apr 06
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_codec_video.c
...ibswfdec/swfdec_codec.c b/libswfdec/swfdec_codec.c index 8affa1c..32ad9cc 100644 --- a/libswfdec/swfdec_codec.c +++ b/libswfdec/swfdec_codec.c @@ -27,7 +27,6 @@ /*** DECODER LIST ***/ extern const SwfdecAudioCodec swfdec_codec_adpcm; -extern const SwfdecVideoCodec swfdec_codec_screen; #ifdef HAVE_MAD extern const SwfdecAudioCodec swfdec_codec_mad; @@ -35,11 +34,8 @@ extern const SwfdecAudioCodec swfdec_cod #ifdef HAVE_FFMPEG extern const SwfdecAudioCodec swfdec_codec_ffmpeg_audio; -extern const SwfdecVideoCodec swfdec_codec_ffmpeg_video; #endif -extern const SwfdecVideoCodec swfdec_code...