From e223959389bdbdc5409fe71278d47b6e9eab870b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 30 Dec 2016 17:19:50 +0100 Subject: added volume factor diff --git a/src/rhlibrary/main.go b/src/rhlibrary/main.go index c9f3dde..6755b56 100644 --- a/src/rhlibrary/main.go +++ b/src/rhlibrary/main.go @@ -37,6 +37,10 @@ import ( "github.com/gotk3/gotk3/gtk" ) +const ( + volumeFactor = 2.82 // +9db +) + var ( rhl = log.New(os.Stderr, "[rhlibrary]\t", log.LstdFlags) rhdl = log.New(ioutil.Discard, "[rhlibrary-dbg]\t", log.LstdFlags) @@ -95,7 +99,7 @@ func main() { } defer db.Cleanup() - p, err := player.NewPlayer(sndDir.Get().(string), rhl, rhdl) + p, err := player.NewPlayer(sndDir.Get().(string), volumeFactor, rhl, rhdl) if err != nil { rhl.Println("Error initializing Player:", err) return -- cgit v0.10.2