Browse Source

prevent openal errors from breaking UI

master
Tim Cooper 9 years ago
parent
commit
1fe7ae356e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      cmd/barnard/main.go

+ 3
- 0
cmd/barnard/main.go View File

@@ -47,6 +47,9 @@ func main() {
b.Client.Attach(gumbleutil.AutoBitrate) b.Client.Attach(gumbleutil.AutoBitrate)
b.Client.Attach(&b) b.Client.Attach(&b)
// Audio // Audio
if os.Getenv("ALSOFT_LOGLEVEL") == "" {
os.Setenv("ALSOFT_LOGLEVEL", "0")
}
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)


Loading…
Cancel
Save