diff options
author | wm4 <wm4@nowhere> | 2017-09-21 12:48:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-09-21 12:48:30 +0200 |
commit | fdb300b983744c522f335ccf64e9788b78f86701 (patch) | |
tree | abd10d97e8c6cb30e1621db8b67d709cbfaeb705 /wscript_build.py | |
parent | 3a2d5e68acb2ac0f8b09b896907a692b1c48c6b3 (diff) | |
download | mpv-fdb300b983744c522f335ccf64e9788b78f86701.tar.bz2 mpv-fdb300b983744c522f335ccf64e9788b78f86701.tar.xz |
audio: make libaf derived code optional
This code could not be relicensed. The intention was to write new filter
code (which could handle both audio and video), but that's a bit of
work. Write some code that can do audio conversion (resampling,
downmixing, etc.) without the old audio filter chain code in order to
speed up the LGPL relicensing.
If you build with --disable-libaf, nothing in audio/filter/* is compiled
in. It breaks a few features, such as --volume, --af, pitch correction
on speed changes, replaygain.
Most likely this adds some bugs, even if --disable-libaf is not used.
(How the fuck does EOF notification work again anyway?)
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/wscript_build.py b/wscript_build.py index 0726bd5c9d..d9b56074ef 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -152,8 +152,8 @@ def build(ctx): sources = [ ## Audio - ( "audio/audio.c" ), ( "audio/aconverter.c" ), + ( "audio/audio.c", "libaf" ), ( "audio/audio_buffer.c" ), ( "audio/chmap.c" ), ( "audio/chmap_sel.c" ), @@ -163,18 +163,18 @@ def build(ctx): ( "audio/decode/ad_lavc.c" ), ( "audio/decode/ad_spdif.c" ), ( "audio/decode/dec_audio.c" ), - ( "audio/filter/af.c" ), - ( "audio/filter/af_channels.c" ), - ( "audio/filter/af_equalizer.c" ), - ( "audio/filter/af_format.c" ), - ( "audio/filter/af_lavcac3enc.c" ), - ( "audio/filter/af_lavfi.c" ), - ( "audio/filter/af_lavrresample.c" ), - ( "audio/filter/af_pan.c" ), - ( "audio/filter/af_rubberband.c", "rubberband" ), - ( "audio/filter/af_scaletempo.c" ), - ( "audio/filter/af_volume.c" ), - ( "audio/filter/tools.c" ), + ( "audio/filter/af.c", "libaf" ), + ( "audio/filter/af_channels.c", "libaf" ), + ( "audio/filter/af_equalizer.c", "libaf" ), + ( "audio/filter/af_format.c", "libaf" ), + ( "audio/filter/af_lavcac3enc.c", "libaf" ), + ( "audio/filter/af_lavfi.c", "libaf" ), + ( "audio/filter/af_lavrresample.c", "libaf" ), + ( "audio/filter/af_pan.c", "libaf" ), + ( "audio/filter/af_rubberband.c", "rubberband && libaf" ), + ( "audio/filter/af_scaletempo.c", "libaf" ), + ( "audio/filter/af_volume.c", "libaf" ), + ( "audio/filter/tools.c", "libaf" ), ( "audio/out/ao.c" ), ( "audio/out/ao_alsa.c", "alsa" ), ( "audio/out/ao_audiounit.m", "audiounit" ), |