Skip to content

Commit 00fa94d

Browse files
committed
configure: Disable mp3.o (libmad) by default.
Not so useful anymore since libsndfile has mpeg audio support.
1 parent 889d9dc commit 00fa94d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dsp is an audio processing program with an interactive mode.
1717
* ffmpeg (libavcodec, libavformat, and libavutil): For ffmpeg input support.
1818
* alsa-lib: For alsa input/output support.
1919
* libao: For ao output support.
20-
* libmad: For mp3 input support.
20+
* libmad: For mp3 input support (disabled by default).
2121
* libpulse-simple: For PulseAudio input/ouput support.
2222
* LADSPA: For the LADSPA frontend and the `ladspa_host` effect.
2323
* libltdl (libtool): For the `ladspa_host` effect.

configure

+10-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Options:
1818
--disable-zita-convolver
1919
--disable-alsa
2020
--disable-ao
21-
--disable-mad
21+
--enable-mad
2222
--disable-pulse
2323
--disable-ladspa_dsp
2424
--disable-ladspa-host
@@ -37,6 +37,14 @@ for i in "$@"; do
3737
esac
3838
done
3939

40+
unset CONFIG_DISABLE_DSP CONFIG_DISABLE_SNDFILE CONFIG_DISABLE_FFMPEG
41+
unset CONFIG_DISABLE_FFTW3 CONFIG_DISABLE_ZITA_CONVOLVER CONFIG_DISABLE_ALSA
42+
unset CONFIG_DISABLE_AO CONFIG_DISABLE_MAD CONFIG_DISABLE_PULSE
43+
unset CONFIG_DISABLE_LADSPA_DSP CONFIG_DISABLE_LADSPA_HOST CONFIG_DEBUG_BUILD
44+
45+
# Disable libmad by default since libsndfile has mpeg audio support now.
46+
CONFIG_DISABLE_MAD=y
47+
4048
[ "$NO_CONFIG" != "y" -a -f ./.config ] && . ./.config
4149

4250
for i in "$@"; do
@@ -49,6 +57,7 @@ for i in "$@"; do
4957
--disable-alsa) CONFIG_DISABLE_ALSA=y ;;
5058
--disable-ao) CONFIG_DISABLE_AO=y ;;
5159
--disable-mad) CONFIG_DISABLE_MAD=y ;;
60+
--enable-mad) unset CONFIG_DISABLE_MAD ;;
5261
--disable-pulse) CONFIG_DISABLE_PULSE=y ;;
5362
--disable-ladspa_dsp) CONFIG_DISABLE_LADSPA_DSP=y ;;
5463
--disable-ladspa-host) CONFIG_DISABLE_LADSPA_HOST=y ;;

0 commit comments

Comments
 (0)