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() {