mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42:02 +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 {
|
if keyState[ebiten.KeyP] != 1 {
|
||||||
return nil
|
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 {
|
if seBuffer == nil {
|
||||||
b, err := ioutil.ReadAll(seStream)
|
b, err := ioutil.ReadAll(seStream)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user