From 3b2f41f18ac032f5bc3eb6b21797d223f7ddd21b Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 12 Mar 2021 15:09:48 +0100 Subject: [PATCH] =?UTF-8?q?mpv:=20clear-speed:=20Use=20firefox=E2=80=99s?= =?UTF-8?q?=20scaletempo=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/simon/modules/mpv.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/users/simon/modules/mpv.nix b/users/simon/modules/mpv.nix index 05962d2..b714a2c 100644 --- a/users/simon/modules/mpv.nix +++ b/users/simon/modules/mpv.nix @@ -216,8 +216,10 @@ in tscale-clamp = 0.0; }; - # adapted from https://github.com/mpv-player/mpv/issues/4418#issuecomment-368272929 - clear-speed.af-add = "scaletempo=stride=18:overlap=.6:search=10"; + # adapted from firefox’s SoundTouch configuration (10 ms sequence, + # 15 ms seek window, 8 ms overlap) + # https://searchfox.org/mozilla-central/rev/9ae77e4ce3378bd683ac9a86b729ea6b6bd22cb8/dom/media/AudioStream.cpp#173 + clear-speed.af-add = "scaletempo=stride=10:search=15:overlap=.53333"; }; scripts = [