Changed AudioEncoder Application to gopus.Audio
This commit is contained in:
parent
4376fe7394
commit
c8782447c1
|
@ -1,6 +1,9 @@
|
|||
MumbleDJ Changelog
|
||||
==================
|
||||
|
||||
### January 14, 2015 -- `v2.2.9`
|
||||
* Set AudioEncoder Application to `gopus.Audio` instead of `gopus.Voice` for hopefully better sound quality.
|
||||
|
||||
### January 12, 2015 -- `v2.2.8`
|
||||
* Added !nextsong command, which outputs some information about the next song in the queue if it exists.
|
||||
|
||||
|
|
3
main.go
3
main.go
|
@ -10,6 +10,7 @@ package main
|
|||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/layeh/gopus"
|
||||
"github.com/layeh/gumble/gumble"
|
||||
"github.com/layeh/gumble/gumble_ffmpeg"
|
||||
"github.com/layeh/gumble/gumbleutil"
|
||||
|
@ -55,6 +56,8 @@ func (dj *mumbledj) OnConnect(e *gumble.ConnectEvent) {
|
|||
} else {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
dj.client.AudioEncoder().SetApplication(gopus.Audio)
|
||||
}
|
||||
|
||||
// OnDisconnect event. Terminates MumbleDJ thread.
|
||||
|
|
Reference in a new issue