mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio: Bug fix: context.ready should be set true after writing
This commit is contained in:
parent
2e35d9dc70
commit
876340da17
@ -422,6 +422,7 @@ func (p *playerImpl) loop() {
|
||||
p.context.setError(err)
|
||||
break
|
||||
}
|
||||
p.context.setReady()
|
||||
}
|
||||
close(wclosed)
|
||||
}()
|
||||
@ -483,7 +484,6 @@ func (p *playerImpl) read() ([]byte, bool) {
|
||||
buf[2*i+1] = byte(v16 >> 8)
|
||||
}
|
||||
p.pos += int64(len(buf))
|
||||
p.context.setReady()
|
||||
|
||||
return buf, true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user