summaryrefslogtreecommitdiff
path: root/src/rhrdlibrary/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhrdlibrary/main.go')
-rw-r--r--src/rhrdlibrary/main.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rhrdlibrary/main.go b/src/rhrdlibrary/main.go
index cae8954..4209b8a 100644
--- a/src/rhrdlibrary/main.go
+++ b/src/rhrdlibrary/main.go
@@ -33,7 +33,6 @@ import (
"os"
"os/signal"
"sync"
- "time"
)
var (
@@ -42,9 +41,9 @@ var (
)
func init() {
- if _, exists := os.LookupEnv("RHRDLIBRARY_DEBUG"); exists {
- rhdl.SetOutput(os.Stderr)
- }
+ // if _, exists := os.LookupEnv("RHRDLIBRARY_DEBUG"); exists {
+ rhdl.SetOutput(os.Stderr)
+ // }
}
type envStringValue string
@@ -84,12 +83,14 @@ func main() {
}
defer db.Cleanup()
+ player, _ := NewPlayer("/home/equinox/helsinki/rivenhell/contrib/rhrdlibrary/snd")
+
var wg sync.WaitGroup
wg.Add(1)
go func() {
defer wg.Done()
- time.Sleep(10 * time.Second)
+ player.Play(1, 1)
}()
alldone := make(chan bool)