Selaa lähdekoodia

update due to gumble API changes

master
Tim Cooper 10 vuotta sitten
vanhempi
commit
4b7555adbd
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. +1
    -2
      cmd/barnard/main.go

+ 1
- 2
cmd/barnard/main.go Näytä tiedosto

@@ -29,7 +29,6 @@ func main() {
b.Config = gumble.Config{ b.Config = gumble.Config{
Username: *username, Username: *username,
Address: *server, Address: *server,
Listener: &b,
} }
if *insecure { if *insecure {
b.Config.TLSConfig.InsecureSkipVerify = true b.Config.TLSConfig.InsecureSkipVerify = true
@@ -44,12 +43,12 @@ func main() {
} }


b.Client = gumble.NewClient(&b.Config) b.Client = gumble.NewClient(&b.Config)
b.Client.Attach(&b)
// Audio // Audio
if stream, err := gumble_openal.New(b.Client); err != nil { if stream, err := gumble_openal.New(b.Client); err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err) fmt.Fprintf(os.Stderr, "%s\n", err)
os.Exit(1) os.Exit(1)
} else { } else {
b.Config.AudioListener = stream
b.Stream = stream b.Stream = stream
} }




||||||
x
 
000:0
Loading…
Peruuta
Tallenna