From 4b7555adbd40303ca74647f3268fbfa4cd6246fd Mon Sep 17 00:00:00 2001 From: Tim Cooper Date: Wed, 10 Dec 2014 10:03:45 -0400 Subject: [PATCH] update due to gumble API changes --- cmd/barnard/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/barnard/main.go b/cmd/barnard/main.go index 1e60f4f..5ca2d6d 100644 --- a/cmd/barnard/main.go +++ b/cmd/barnard/main.go @@ -29,7 +29,6 @@ func main() { b.Config = gumble.Config{ Username: *username, Address: *server, - Listener: &b, } if *insecure { b.Config.TLSConfig.InsecureSkipVerify = true @@ -44,12 +43,12 @@ func main() { } b.Client = gumble.NewClient(&b.Config) + b.Client.Attach(&b) // Audio if stream, err := gumble_openal.New(b.Client); err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) os.Exit(1) } else { - b.Config.AudioListener = stream b.Stream = stream }