diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-01-13 01:35:16 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-01-13 01:35:16 (GMT) |
commit | f5692afaec4f17b5412e357224c1b4f16eb3f400 (patch) | |
tree | 2a7e9edd267e4d4c28af792fa517a4da43db0e36 /src/rhrdlibrary/main.go | |
parent | cb56a81e69936d2da108d9654cd7b30f8e8169f2 (diff) |
added inital player
Diffstat (limited to 'src/rhrdlibrary/main.go')
-rw-r--r-- | src/rhrdlibrary/main.go | 11 |
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) |