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 812a395..b4b8302 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)