From 2f622df28dfd3884b9ce9de73a5d1bc5c7bf896f Mon Sep 17 00:00:00 2001 From: Alex P Date: Tue, 18 Nov 2025 10:03:42 +0200 Subject: [PATCH] Fix input audio source swap bug startInputAudioUnderMutex was incorrectly swapping outputSource instead of inputSource, breaking microphone functionality. --- audio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio.go b/audio.go index 368b2f7e..c02238cc 100644 --- a/audio.go +++ b/audio.go @@ -118,7 +118,7 @@ func startOutputAudioUnderMutex(alsaOutputDevice string) { func startInputAudioUnderMutex(alsaPlaybackDevice string) { newSource := audio.NewCgoInputSource(alsaPlaybackDevice, getAudioConfig()) - oldSource := outputSource.Swap(&newSource) + oldSource := inputSource.Swap(&newSource) newRelay := audio.NewInputRelay(&newSource) oldRelay := inputRelay.Swap(newRelay)