]> git.0d.be Git - barnard.git/commitdiff
prevent openal errors from breaking UI
authorTim Cooper <tim.cooper@layeh.com>
Fri, 24 Apr 2015 13:26:26 +0000 (10:26 -0300)
committerTim Cooper <tim.cooper@layeh.com>
Fri, 24 Apr 2015 13:26:26 +0000 (10:26 -0300)
cmd/barnard/main.go

index 812a395f47d4177990c22bc06588ee6ead58d116..b4b8302c92e0d4b5114441b07b645e22089d04ff 100644 (file)
@@ -47,6 +47,9 @@ func main() {
        b.Client.Attach(gumbleutil.AutoBitrate)
        b.Client.Attach(&b)
        // Audio
+       if os.Getenv("ALSOFT_LOGLEVEL") == "" {
+               os.Setenv("ALSOFT_LOGLEVEL", "0")
+       }
        if stream, err := gumble_openal.New(b.Client); err != nil {
                fmt.Fprintf(os.Stderr, "%s\n", err)
                os.Exit(1)