From 3cedae882f11431b0bbe2df675d73714147271a0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 6 Apr 2016 01:17:11 +0900 Subject: [PATCH] audio: Bug fix: buffers must be consumed (reproduced on go-inovation) --- exp/audio/audio_openal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exp/audio/audio_openal.go b/exp/audio/audio_openal.go index 2d48b6b28..04779e894 100644 --- a/exp/audio/audio_openal.go +++ b/exp/audio/audio_openal.go @@ -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]