prevent openal errors from breaking UI

This commit is contained in:
Tim Cooper
2015-04-24 10:26:26 -03:00
parent b56133e033
commit 1fe7ae356e

View 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)