Skip to content

Commit

Permalink
Update malgo initialization to use BackendAlsa
Browse files Browse the repository at this point in the history
  • Loading branch information
tphakala committed Mar 4, 2024
1 parent b11d792 commit 28f569c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/myaudio/capture.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func CaptureAudio(settings *conf.Settings, wg *sync.WaitGroup, quitChan chan str
if settings.Debug {
fmt.Println("Initializing context")
}
malgoCtx, err := malgo.InitContext(nil, malgo.ContextConfig{}, func(message string) {
malgoCtx, err := malgo.InitContext([]malgo.Backend{malgo.BackendAlsa}, malgo.ContextConfig{}, func(message string) {
if settings.Debug {
fmt.Print(message)
}
Expand Down

0 comments on commit 28f569c

Please sign in to comment.