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)