From c33c2949bd6c6c5867eecd3638f5f02deda83d00 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 15 May 2018 17:55:41 +0200 Subject: Less trivmix resource usage --- bragi.nix | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/bragi.nix b/bragi.nix index dc732626..8d28168f 100644 --- a/bragi.nix +++ b/bragi.nix @@ -195,26 +195,30 @@ in rec { }; services.trivmix = { - "mpdmix0" = { connectOut = "outnode0:in"; group = "mpd"; initial = "-35dB"; }; - "mpdmix1" = { connectOut = "outnode1:in"; group = "mpd"; initial = "-35dB"; }; + fps = "20"; interval = "0.5"; - "passmix0" = { connectOut = "outnode0:in"; connectIn = "system:capture_5"; group = "vali_out"; initial = "-5dB"; }; - "passmix1" = { connectOut = "outnode1:in"; connectIn = "system:capture_6"; group = "vali_out"; initial = "-5dB"; }; + mixers = { + "mpdmix0" = { connectOut = "outnode0:in"; group = "mpd"; initial = "-35dB"; }; + "mpdmix1" = { connectOut = "outnode1:in"; group = "mpd"; initial = "-35dB"; }; - "passmix2" = { connectOut = "system:playback_5"; connectIn = "system:capture_1"; group = "mic_out"; initial = "1"; }; - "passmix3" = { connectOut = "system:playback_6"; connectIn = "system:capture_1"; group = "mic_out"; initial = "1"; }; + "passmix0" = { connectOut = "outnode0:in"; connectIn = "system:capture_5"; group = "vali_out"; initial = "-5dB"; }; + "passmix1" = { connectOut = "outnode1:in"; connectIn = "system:capture_6"; group = "vali_out"; initial = "-5dB"; }; - "passmix4" = { connectOut = "outnode0:in"; connectIn = "system:capture_7"; group = "hel_out"; initial = "-5dB"; }; - "passmix5" = { connectOut = "outnode1:in"; connectIn = "system:capture_8"; group = "hel_out"; initial = "-5dB"; }; + "passmix2" = { connectOut = "system:playback_5"; connectIn = "system:capture_1"; group = "mic_out"; initial = "1"; }; + "passmix3" = { connectOut = "system:playback_6"; connectIn = "system:capture_1"; group = "mic_out"; initial = "1"; }; - "outnode0" = { initial = "1"; adjustable = false; }; - "outnode1" = { initial = "1"; adjustable = false; }; + "passmix4" = { connectOut = "outnode0:in"; connectIn = "system:capture_7"; group = "hel_out"; initial = "-5dB"; }; + "passmix5" = { connectOut = "outnode1:in"; connectIn = "system:capture_8"; group = "hel_out"; initial = "-5dB"; }; - "headphones0" = { connectOut = "system:playback_3"; connectIn = "outnode0:out"; group = "headphones"; initial = "1"; balance = "right"; }; - "headphones1" = { connectOut = "system:playback_4"; connectIn = "outnode1:out"; group = "headphones"; initial = "1"; balance = "left"; }; + "outnode0" = { initial = "1"; adjustable = false; }; + "outnode1" = { initial = "1"; adjustable = false; }; - "speakers0" = { connectOut = "system:playback_7"; connectIn = "outnode0:out"; group = "speakers"; initial = "0"; balance = "right"; }; - "speakers1" = { connectOut = "system:playback_8"; connectIn = "outnode1:out"; group = "speakers"; initial = "0"; balance = "left"; }; + "headphones0" = { connectOut = "system:playback_3"; connectIn = "outnode0:out"; group = "headphones"; initial = "1"; balance = "right"; }; + "headphones1" = { connectOut = "system:playback_4"; connectIn = "outnode1:out"; group = "headphones"; initial = "1"; balance = "left"; }; + + "speakers0" = { connectOut = "system:playback_7"; connectIn = "outnode0:out"; group = "speakers"; initial = "0"; balance = "right"; }; + "speakers1" = { connectOut = "system:playback_8"; connectIn = "outnode1:out"; group = "speakers"; initial = "0"; balance = "left"; }; + }; }; services.mpd = { -- cgit v1.2.3