From e2786dd50f5080bcd6515101e3654d03d7cfb041 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 2 Apr 2021 17:54:04 +0100 Subject: [PATCH] mod mixer - unput monitor sources as they may be already this results in no vu meter if they are muted... unmut them so we get a working vu --- src/modules/mixer/lib/backends/pulseaudio/pulse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/mixer/lib/backends/pulseaudio/pulse.c b/src/modules/mixer/lib/backends/pulseaudio/pulse.c index e10d27579..521a17abf 100644 --- a/src/modules/mixer/lib/backends/pulseaudio/pulse.c +++ b/src/modules/mixer/lib/backends/pulseaudio/pulse.c @@ -1647,6 +1647,7 @@ _sink_monitor_begin(Sink *s) s->mon_stream = pa_stream_new(ctx->context, "__e_mon", &samp, NULL); pa_stream_set_read_callback(s->mon_stream, _sink_mon_read, s); + pa_context_set_source_mute_by_name(ctx->context, s->monitor_source_name, 0, NULL, NULL); pa_stream_connect_record(s->mon_stream, s->monitor_source_name, &attr, PA_STREAM_NOFLAGS @@ -1736,6 +1737,7 @@ _sink_input_monitor_begin(Sink_Input *i) } if (!l) return; snprintf(buf, sizeof(buf), "%i", mon_idx); + pa_context_set_source_mute_by_name(ctx->context, buf, 0, NULL, NULL); pa_stream_connect_record(i->mon_stream, buf, &attr, PA_STREAM_NOFLAGS