quick fix

This commit is contained in:
Jairinho 2022-03-01 18:29:32 -03:00
parent 03ebf6e191
commit a1eb5f51a3
No known key found for this signature in database
GPG Key ID: 954589B18A21D5B6

View File

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