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) + } }() }