summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rhlibrary/main.go6
1 files changed, 5 insertions, 1 deletions
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