From 55d61b8c677c9dff610ea5e7d1dc30678ab5c3a0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 27 Mar 2016 20:10:04 +0900 Subject: [PATCH] examples/audio: Add comments --- examples/audio/main.go | 2 ++ 1 file changed, 2 insertions(+) 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 {