summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-02 02:58:52 +0200
committerwm4 <wm4@nowhere>2014-10-02 02:58:52 +0200
commitae2e2b974077f13c48007635c399918125822286 (patch)
tree2b3fc2c4783024fd6372099de80ec451927d8a27 /options/options.c
parentb5942f80de481cabab07ce1cee7a2b6a537b4c93 (diff)
downloadmpv-ae2e2b974077f13c48007635c399918125822286.tar.bz2
mpv-ae2e2b974077f13c48007635c399918125822286.tar.xz
audio: enable pitch correction by default when playing fast
Apparently this is what users want. When playing with normal speed, nothing is done. When playing slower than normal, resampling is used instead, because scaletempo (which does the pitch correction) adds too many artifacts.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index e76a20d2c8..bc016dfd14 100644
--- a/options/options.c
+++ b/options/options.c
@@ -249,6 +249,8 @@ const m_option_t mp_opts[] = {
OPT_DOUBLE("speed", playback_speed, M_OPT_RANGE | M_OPT_FIXED,
.min = 0.01, .max = 100.0),
+ OPT_FLAG("audio-pitch-correction", pitch_correction, 0),
+
// set a-v distance
OPT_FLOATRANGE("audio-delay", audio_delay, 0, -100.0, 100.0),
@@ -639,6 +641,7 @@ const struct MPOpts mp_default_opts = {
.audio_output_channels = MP_CHMAP_INIT_STEREO,
.audio_output_format = 0, // AF_FORMAT_UNKNOWN
.playback_speed = 1.,
+ .pitch_correction = 1,
.movie_aspect = -1.,
.field_dominance = -1,
.sub_auto = 0,