diff --git a/exp/audio/internal/driver/driver_openal.go b/exp/audio/internal/driver/driver_openal.go index 4f18409ea..7095e64a5 100644 --- a/exp/audio/internal/driver/driver_openal.go +++ b/exp/audio/internal/driver/driver_openal.go @@ -110,7 +110,8 @@ func (p *Player) Proceed(data []byte) error { } if len(p.alBuffers) == 0 { - return errors.New("driver: p.alBuffers must > 0") + // This can happen (#207) + return nil } buf := p.alBuffers[0] p.alBuffers = p.alBuffers[1:] diff --git a/exp/audio/internal/driver/driver_windows.go b/exp/audio/internal/driver/driver_windows.go index 58a0c17de..578642335 100644 --- a/exp/audio/internal/driver/driver_windows.go +++ b/exp/audio/internal/driver/driver_windows.go @@ -116,7 +116,8 @@ func (p *Player) Proceed(data []byte) error { } } if headerToWrite == nil { - return errors.New("driver: no available buffers") + // This can happen (#207) + return nil } if err := headerToWrite.Write(p.out, p.buffer[:bufferSize]); err != nil { return err