diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-12-30 16:19:50 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-12-30 16:19:50 (GMT) |
commit | e223959389bdbdc5409fe71278d47b6e9eab870b (patch) | |
tree | ac8682194ddd335c4bbc65a4f7dfd623b8c5893a /src/rhlibrary | |
parent | e548f2bb105320cf9f4bbc8af7cc9bb1491cccf7 (diff) |
added volume factor
Diffstat (limited to 'src/rhlibrary')
-rw-r--r-- | src/rhlibrary/main.go | 6 |
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 |