From: Tim Cooper Date: Sun, 24 May 2015 00:40:53 +0000 (-0300) Subject: update due to gumble changes X-Git-Url: https://git.0d.be/?p=barnard.git;a=commitdiff_plain;h=5055ccf1aec0c13ec4d6998db35536eda23f815f update due to gumble changes --- diff --git a/barnard.go b/barnard.go index 0b51e01..4b0045e 100644 --- a/barnard.go +++ b/barnard.go @@ -7,7 +7,7 @@ import ( ) type Barnard struct { - Config gumble.Config + Config *gumble.Config Client *gumble.Client Stream *gumble_openal.Stream diff --git a/cmd/barnard/main.go b/cmd/barnard/main.go index b4b8302..8b2a331 100644 --- a/cmd/barnard/main.go +++ b/cmd/barnard/main.go @@ -27,10 +27,9 @@ func main() { b.Ui = uiterm.New(&b) // Gumble - b.Config = gumble.Config{ - Username: *username, - Address: *server, - } + b.Config = gumble.NewConfig() + b.Config.Username = *username + b.Config.Address = *server if *insecure { b.Config.TLSConfig.InsecureSkipVerify = true } @@ -43,7 +42,7 @@ func main() { } } - b.Client = gumble.NewClient(&b.Config) + b.Client = gumble.NewClient(b.Config) b.Client.Attach(gumbleutil.AutoBitrate) b.Client.Attach(&b) // Audio