summaryrefslogtreecommitdiff
path: root/xA/xA.go
diff options
context:
space:
mode:
Diffstat (limited to 'xA/xA.go')
-rw-r--r--xA/xA.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/xA/xA.go b/xA/xA.go
index 17a0400..f501622 100644
--- a/xA/xA.go
+++ b/xA/xA.go
@@ -281,7 +281,11 @@ func beep() {
}
go func() {
<-otoReady
- otoContext.NewPlayer(bytes.NewReader(beepSample)).Play()
+ p := otoContext.NewPlayer(bytes.NewReader(beepSample))
+ p.Play()
+ for p.IsPlaying() {
+ time.Sleep(time.Second)
+ }
}()
}