summaryrefslogtreecommitdiff
path: root/src/rhlibrary/main.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-13 17:04:04 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-13 17:04:04 (GMT)
commita0816652bf083e2934f2fca748338391ac3de757 (patch)
treea1e7cbdb282628b983da5e965006876e882a1210 /src/rhlibrary/main.go
parent72c7c990622c347c5462fa37bc0da989e220eb97 (diff)
moved audio player to rhrd-go
Diffstat (limited to 'src/rhlibrary/main.go')
-rw-r--r--src/rhlibrary/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rhlibrary/main.go b/src/rhlibrary/main.go
index 5dea4ca..c6ab425 100644
--- a/src/rhlibrary/main.go
+++ b/src/rhlibrary/main.go
@@ -25,6 +25,7 @@
package main
import (
+ "code.helsinki.at/rhrd-go/player"
"code.helsinki.at/rhrd-go/rddb"
"flag"
"fmt"
@@ -83,12 +84,12 @@ func main() {
}
defer db.Cleanup()
- player, err := NewPlayer("/home/equinox/helsinki/rivenhell/contrib/rhlibrary/snd")
+ p, err := player.NewPlayer("/home/equinox/helsinki/rivenhell/contrib/rhlibrary/snd")
if err != nil {
rhl.Println("Error initializing Player:", err)
return
}
- player.Play(1, 1)
+ p.Play(1, 1)
mw, err := NewMainWindow(640, 360)
if err != nil {