audio: Bug fix: buffers must be consumed (reproduced on go-inovation)

This commit is contained in:
Hajime Hoshi 2016-04-06 01:17:11 +09:00
parent 398d7710ae
commit 3cedae882f

View File

@ -100,7 +100,7 @@ func (p *player) proceed() error {
p.alBuffers = append(p.alBuffers, bufs...)
}
if 0 < len(p.alBuffers) {
for 0 < len(p.alBuffers) {
n, err := p.source.Read(tmpBuffer)
if 0 < n {
buf := p.alBuffers[0]