From c8782447c15fdff558284f7b2b6585eadfa108db Mon Sep 17 00:00:00 2001 From: Matthieu Grieger Date: Wed, 14 Jan 2015 11:56:46 -0800 Subject: [PATCH] Changed AudioEncoder Application to gopus.Audio --- CHANGELOG.md | 3 +++ main.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31be4f4..29f2aea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/main.go b/main.go index 73acd63..489267e 100644 --- a/main.go +++ b/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.