quick fix
This commit is contained in:
parent
03ebf6e191
commit
a1eb5f51a3
5
main.go
5
main.go
|
@ -99,10 +99,7 @@ func (ui *UI) PlaySound(sound []byte) func() {
|
||||||
player := ui.AudioContext.NewPlayerFromBytes(sound)
|
player := ui.AudioContext.NewPlayerFromBytes(sound)
|
||||||
player.SetVolume(0.3)
|
player.SetVolume(0.3)
|
||||||
player.Play()
|
player.Play()
|
||||||
return func() {
|
return func() { _ = player.Close() }
|
||||||
player.Pause()
|
|
||||||
_ = player.Close()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user