mirror of https://github.com/jetkvm/kvm.git
Fix input audio source swap bug
startInputAudioUnderMutex was incorrectly swapping outputSource instead of inputSource, breaking microphone functionality.
This commit is contained in:
parent
bc2a5f88e1
commit
2f622df28d
2
audio.go
2
audio.go
|
|
@ -118,7 +118,7 @@ func startOutputAudioUnderMutex(alsaOutputDevice string) {
|
||||||
|
|
||||||
func startInputAudioUnderMutex(alsaPlaybackDevice string) {
|
func startInputAudioUnderMutex(alsaPlaybackDevice string) {
|
||||||
newSource := audio.NewCgoInputSource(alsaPlaybackDevice, getAudioConfig())
|
newSource := audio.NewCgoInputSource(alsaPlaybackDevice, getAudioConfig())
|
||||||
oldSource := outputSource.Swap(&newSource)
|
oldSource := inputSource.Swap(&newSource)
|
||||||
newRelay := audio.NewInputRelay(&newSource)
|
newRelay := audio.NewInputRelay(&newSource)
|
||||||
oldRelay := inputRelay.Swap(newRelay)
|
oldRelay := inputRelay.Swap(newRelay)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue