mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
examples/audio: Add comments
This commit is contained in:
parent
457581c8ad
commit
55d61b8c67
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user