1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 15:22:09 +00:00

af_scaletempo2: raise max playback rate to 8.0

4.0 was too low and copied from Chromium defaults when the filter was
initially written, there's no good reason for it to be so low, so
double it.
This commit is contained in:
llyyr 2023-09-25 23:47:54 +05:30 committed by Dudemanguy
parent a238afdbc5
commit 2033a3c93e
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ Available filters are:
``max-speed=<speed>`` ``max-speed=<speed>``
Mute audio if the playback speed is above ``<speed>`` Mute audio if the playback speed is above ``<speed>``
and ``<speed> != 0``. (default: 4.0) and ``<speed> != 0``. (default: 8.0)
``search-interval=<amount>`` ``search-interval=<amount>``
Length in milliseconds to search for best overlap position. (default: 30) Length in milliseconds to search for best overlap position. (default: 30)

View File

@ -234,7 +234,7 @@ const struct mp_user_filter_entry af_scaletempo2 = {
.priv_size = sizeof(OPT_BASE_STRUCT), .priv_size = sizeof(OPT_BASE_STRUCT),
.priv_defaults = &(const OPT_BASE_STRUCT) { .priv_defaults = &(const OPT_BASE_STRUCT) {
.min_playback_rate = 0.25, .min_playback_rate = 0.25,
.max_playback_rate = 4.0, .max_playback_rate = 8.0,
.ola_window_size_ms = 20, .ola_window_size_ms = 20,
.wsola_search_interval_ms = 30, .wsola_search_interval_ms = 30,
}, },