From b9f804b566c4c528714e4ec5e63675ad7ba5fefd Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 18 Jan 2018 14:44:20 +0100 Subject: audio: rewrite filtering glue code Use the new filtering code for audio too. --- options/options.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index ce602f2683..bce2bf3be6 100644 --- a/options/options.c +++ b/options/options.c @@ -47,10 +47,6 @@ #include "player/command.h" #include "stream/stream.h" -#if HAVE_LIBAF -#include "audio/filter/af.h" -#endif - #if HAVE_DRM #include "video/out/drm_common.h" #endif @@ -94,8 +90,6 @@ extern const struct m_sub_options angle_conf; extern const struct m_sub_options cocoa_conf; extern const struct m_sub_options android_conf; -extern const struct m_sub_options resample_config; - static const struct m_sub_options screenshot_conf = { .opts = image_writer_opts, .size = sizeof(struct image_writer_opts), @@ -485,7 +479,7 @@ const m_option_t mp_opts[] = { // force video/audio rate: OPT_DOUBLE("fps", force_fps, CONF_MIN, .min = 0), - OPT_INTRANGE("audio-samplerate", force_srate, UPDATE_AUDIO, 1000, 16*48000), + OPT_INTRANGE("audio-samplerate", force_srate, UPDATE_AUDIO, 0, 16*48000), OPT_CHANNELS("audio-channels", audio_output_channels, UPDATE_AUDIO), OPT_AUDIOFORMAT("audio-format", audio_output_format, UPDATE_AUDIO), OPT_DOUBLE("speed", playback_speed, M_OPT_RANGE, .min = 0.01, .max = 100.0), @@ -497,11 +491,9 @@ const m_option_t mp_opts[] = { // ------------------------- codec/vfilter options -------------------- -#if HAVE_LIBAF OPT_SETTINGSLIST("af-defaults", af_defs, 0, &af_obj_list, .deprecation_message = "use --af + enable/disable flags"), OPT_SETTINGSLIST("af", af_settings, 0, &af_obj_list, ), -#endif OPT_SETTINGSLIST("vf-defaults", vf_defs, 0, &vf_obj_list, .deprecation_message = "use --vf + enable/disable flags"), OPT_SETTINGSLIST("vf", vf_settings, 0, &vf_obj_list, ), @@ -711,7 +703,7 @@ const m_option_t mp_opts[] = { OPT_STRING("record-file", record_file, M_OPT_FILE), - OPT_SUBSTRUCT("", resample_opts, resample_config, 0), + OPT_SUBSTRUCT("", resample_opts, resample_conf, 0), OPT_SUBSTRUCT("", input_opts, input_config, 0), -- cgit v1.2.3