diff --git a/examples/audio/main.go b/examples/audio/main.go index 5ac33fda1..b414ff613 100644 --- a/examples/audio/main.go +++ b/examples/audio/main.go @@ -89,6 +89,8 @@ func (p *Player) updateSE() error { if keyState[ebiten.KeyP] != 1 { return nil } + // Clone the buffer so that we can play the same SE mutiple times. + // TODO(hajimehoshi): This consumes memory. Can we avoid this? if seBuffer == nil { b, err := ioutil.ReadAll(seStream) if err != nil {