summaryrefslogtreecommitdiffstats
path: root/audio/aconverter.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-01-12 04:02:55 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-01-13 03:26:45 -0800
commit6d4b4c0de3152bc2deb2df09ec3e98e032124593 (patch)
treee257216a98e0a40610dc90e6e526152ea7f63833 /audio/aconverter.h
parent23edaf4412e378dabf061b6e852f7314b38b8020 (diff)
downloadmpv-6d4b4c0de3152bc2deb2df09ec3e98e032124593.tar.bz2
mpv-6d4b4c0de3152bc2deb2df09ec3e98e032124593.tar.xz
audio: add global options for resampler defaults
This is part of trying to get rid of --af-defaults, and the af resample filter. It requires a complicated mechanism to set the defaults on the resample filter for backwards compatibility.
Diffstat (limited to 'audio/aconverter.h')
-rw-r--r--audio/aconverter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/aconverter.h b/audio/aconverter.h
index 57c5524c2f..22ca93e4c1 100644
--- a/audio/aconverter.h
+++ b/audio/aconverter.h
@@ -23,9 +23,11 @@ struct mp_resample_opts {
.filter_size = 16, \
.cutoff = 0.0, \
.phase_shift = 10, \
- .normalize = -1, \
+ .normalize = 0, \
}
+extern const struct m_sub_options resample_config;
+
struct mp_aconverter *mp_aconverter_create(struct mpv_global *global,
struct mp_log *log,
const struct mp_resample_opts *opts);