From 7dfd54e87874a648a6bce08be16b001e28fab35a Mon Sep 17 00:00:00 2001 From: lawl Date: Mon, 2 Nov 2020 22:16:57 +0100 Subject: [PATCH] Fix issue when changing default device --- module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.go b/module.go index f2c0a4b..95fdd34 100644 --- a/module.go +++ b/module.go @@ -107,7 +107,7 @@ func loadSupressor(c *pulseaudio.Client, inp input, ui *uistate) error { time.Sleep(time.Millisecond * 1000) // pulseaudio gets SIGKILL'd because of RLIMITS if we send these too fast idx, err = c.LoadModule("module-loopback", - fmt.Sprintf("source=%s sink=nui_mic_raw_in channels=1 latency_msec=1", inp.ID)) + fmt.Sprintf("source=%s sink=nui_mic_raw_in channels=1 latency_msec=1 source_dont_move=true sink_dont_move=true", inp.ID)) if err != nil { return err }