From 17b134b032f6377f1550e0d61153abf03e1e82d6 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:51:39 +0100 Subject: [PATCH] Initialise the PipeWire stream to be in the inactive state. --- audio_pw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio_pw.c b/audio_pw.c index 13ca6e5e..c2fd132c 100644 --- a/audio_pw.c +++ b/audio_pw.c @@ -269,9 +269,9 @@ static int init(__attribute__((unused)) int argc, __attribute__((unused)) char * // called in a realtime thread. pw_stream_connect(data.stream, PW_DIRECTION_OUTPUT, PW_ID_ANY, PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS | - PW_STREAM_FLAG_RT_PROCESS, + PW_STREAM_FLAG_RT_PROCESS | PW_STREAM_FLAG_INACTIVE, params, 1); - stream_is_active = 1; + stream_is_active = 0; pw_thread_loop_unlock(data.loop); return 0; }