"github.com/layeh/barnard"
"github.com/layeh/barnard/uiterm"
"github.com/layeh/gumble/gumble"
- "github.com/layeh/gumble/gumble_openal"
+ "github.com/layeh/gumble/gumbleutil"
+ "github.com/layeh/gumble/gumbleopenal"
+ _ "github.com/layeh/gumble/opus"
)
func main() {
b.Ui = uiterm.New(&b)
// Gumble
- b.Config = gumble.Config{
- Username: *username,
- Address: *server,
- }
+ b.Config = gumble.NewConfig()
+ b.Config.Username = *username
+ b.Config.Address = *server
if *insecure {
b.Config.TLSConfig.InsecureSkipVerify = true
}
}
}
- b.Client = gumble.NewClient(&b.Config)
+ b.Client = gumble.NewClient(b.Config)
+ b.Client.Attach(gumbleutil.AutoBitrate)
b.Client.Attach(&b)
// Audio
- if stream, err := gumble_openal.New(b.Client); err != nil {
+ if os.Getenv("ALSOFT_LOGLEVEL") == "" {
+ os.Setenv("ALSOFT_LOGLEVEL", "0")
+ }
+ if stream, err := gumbleopenal.New(b.Client); err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err)
os.Exit(1)
} else {