From d4778e4acd67dfab3691e324ae797bb9f42364dc Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 14 Jul 2020 13:26:17 +0300 Subject: [PATCH] Use hardware volume keys for mixing --- mpv/.mpv/config | 4 +++- mpv/.mpv/input.conf | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mpv/.mpv/config b/mpv/.mpv/config index 5c0a642..985bc0b 100644 --- a/mpv/.mpv/config +++ b/mpv/.mpv/config @@ -11,14 +11,16 @@ display-tags=* ytdl=no gapless-audio=yes autosync=30 +oss-mixer-device=/dev/mixer +oss-mixer-channel=vol [AO] audio-device=oss//dev/dsp3 -oss-mixer-device=/dev/mixer3 [AM] audio-device=oss//dev/dsp2 oss-mixer-device=/dev/mixer2 +oss-mixer-channel=pcm [VN] af=lavfi=loudnorm diff --git a/mpv/.mpv/input.conf b/mpv/.mpv/input.conf index 5fa349d..c00863a 100644 --- a/mpv/.mpv/input.conf +++ b/mpv/.mpv/input.conf @@ -4,3 +4,5 @@ Shift+PGUP add chapter 1 Shift+PGDWN add chapter -1 ENTER playlist-next force BS set speed 1.0 +VOLUME_UP run "mixer" "-f" "${oss-mixer-device}" "${oss-mixer-channel}" "+2" +VOLUME_DOWN run "mixer" "-f" "${oss-mixer-device}" "${oss-mixer-channel}" "-2" -- 2.44.0