mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
audio: Bug fix: buffers must be consumed (reproduced on go-inovation)
This commit is contained in:
parent
398d7710ae
commit
3cedae882f
@ -100,7 +100,7 @@ func (p *player) proceed() error {
|
|||||||
p.alBuffers = append(p.alBuffers, bufs...)
|
p.alBuffers = append(p.alBuffers, bufs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
if 0 < len(p.alBuffers) {
|
for 0 < len(p.alBuffers) {
|
||||||
n, err := p.source.Read(tmpBuffer)
|
n, err := p.source.Read(tmpBuffer)
|
||||||
if 0 < n {
|
if 0 < n {
|
||||||
buf := p.alBuffers[0]
|
buf := p.alBuffers[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user