From a1eb5f51a318cb985d24dd7450d5c1fac9cede5e Mon Sep 17 00:00:00 2001 From: Jairinho Date: Tue, 1 Mar 2022 18:29:32 -0300 Subject: [PATCH] quick fix --- main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index cf71cc8..3c7c7b1 100644 --- a/main.go +++ b/main.go @@ -99,10 +99,7 @@ func (ui *UI) PlaySound(sound []byte) func() { player := ui.AudioContext.NewPlayerFromBytes(sound) player.SetVolume(0.3) player.Play() - return func() { - player.Pause() - _ = player.Close() - } + return func() { _ = player.Close() } } func main() {