Fix input audio source swap bug

startInputAudioUnderMutex was incorrectly swapping outputSource
instead of inputSource, breaking microphone functionality.
This commit is contained in:
Alex P 2025-11-18 10:03:42 +02:00
parent bc2a5f88e1
commit 2f622df28d
1 changed files with 1 additions and 1 deletions

View File

@ -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)