diff options
author | wm4 <wm4@nowhere> | 2015-09-03 23:55:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-03 23:55:36 +0200 |
commit | 091bfa3abf2f28b37fa12cca6b4c248c31d27965 (patch) | |
tree | f5406c1b373ed91a914712e3c0d25076449df123 /audio/filter/af.c | |
parent | e1fbd3b790b5fe1ae6efc1dd0477c2da88a5b8dc (diff) | |
download | mpv-091bfa3abf2f28b37fa12cca6b4c248c31d27965.tar.bz2 mpv-091bfa3abf2f28b37fa12cca6b4c248c31d27965.tar.xz |
audio/filter: remove some useless filters
All of these filters are considered not useful anymore by us. Some have
replacements in libavfilter (useable through af_lavfi).
af_center, af_extrastereo, af_karaoke, af_sinesuppress, af_sub,
af_surround, af_sweep: pretty simple and useless filters which probably
nobody ever wants.
af_ladspa: has a replacement in libavfilter.
af_hrtf: the algorithm doesn't work properly on most sources, and the
implementation was buggy and complicated. (The filter was inherited from
MPlayer; but even in mpv times we had to apply fixes that fixed major
issues with added noise.) There is a ladspa filter if you still want to
use it.
af_export: I'm not even sure what this is supposed to do. Possibly it
was meant for GUIs rendering audio visualizations, but it couldn't
really work well. For example, the size of the audio depended on the
samplerate (fixed number of samples only), and it couldn't retrieve the
complete audio, only fragments. If this is really needed for GUIs, mpv
should add native visualization, or a proper API for it.
Diffstat (limited to 'audio/filter/af.c')
-rw-r--r-- | audio/filter/af.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/audio/filter/af.c b/audio/filter/af.c index 6a5b1f42a5..b877ba7661 100644 --- a/audio/filter/af.c +++ b/audio/filter/af.c @@ -34,23 +34,12 @@ extern const struct af_info af_info_delay; extern const struct af_info af_info_channels; extern const struct af_info af_info_format; -extern const struct af_info af_info_force; extern const struct af_info af_info_volume; extern const struct af_info af_info_equalizer; extern const struct af_info af_info_pan; -extern const struct af_info af_info_surround; -extern const struct af_info af_info_sub; -extern const struct af_info af_info_export; extern const struct af_info af_info_drc; -extern const struct af_info af_info_extrastereo; extern const struct af_info af_info_lavcac3enc; extern const struct af_info af_info_lavrresample; -extern const struct af_info af_info_sweep; -extern const struct af_info af_info_hrtf; -extern const struct af_info af_info_ladspa; -extern const struct af_info af_info_center; -extern const struct af_info af_info_sinesuppress; -extern const struct af_info af_info_karaoke; extern const struct af_info af_info_scaletempo; extern const struct af_info af_info_bs2b; extern const struct af_info af_info_lavfi; @@ -63,24 +52,12 @@ static const struct af_info *const filter_list[] = { &af_info_volume, &af_info_equalizer, &af_info_pan, - &af_info_surround, - &af_info_sub, - &af_info_export, &af_info_drc, - &af_info_extrastereo, &af_info_lavcac3enc, &af_info_lavrresample, - &af_info_sweep, - &af_info_hrtf, -#if HAVE_LADSPA - &af_info_ladspa, -#endif #if HAVE_RUBBERBAND &af_info_rubberband, #endif - &af_info_center, - &af_info_sinesuppress, - &af_info_karaoke, &af_info_scaletempo, #if HAVE_LIBBS2B &af_info_bs2b, |