update due to gumble changes
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Barnard struct {
|
type Barnard struct {
|
||||||
Config gumble.Config
|
Config *gumble.Config
|
||||||
Client *gumble.Client
|
Client *gumble.Client
|
||||||
|
|
||||||
Stream *gumble_openal.Stream
|
Stream *gumble_openal.Stream
|
||||||
|
|||||||
@@ -27,10 +27,9 @@ func main() {
|
|||||||
b.Ui = uiterm.New(&b)
|
b.Ui = uiterm.New(&b)
|
||||||
|
|
||||||
// Gumble
|
// Gumble
|
||||||
b.Config = gumble.Config{
|
b.Config = gumble.NewConfig()
|
||||||
Username: *username,
|
b.Config.Username = *username
|
||||||
Address: *server,
|
b.Config.Address = *server
|
||||||
}
|
|
||||||
if *insecure {
|
if *insecure {
|
||||||
b.Config.TLSConfig.InsecureSkipVerify = true
|
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(gumbleutil.AutoBitrate)
|
||||||
b.Client.Attach(&b)
|
b.Client.Attach(&b)
|
||||||
// Audio
|
// Audio
|
||||||
|
|||||||
Reference in New Issue
Block a user