From 604827ed3a079eae4eb1f1aff258569b24dee36d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 29 Nov 2016 12:12:48 +0900 Subject: [PATCH] audio/vorbis: Change the capacity of buffer --- audio/vorbis/vorbis.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/audio/vorbis/vorbis.go b/audio/vorbis/vorbis.go index 88bf26402..80f2f3961 100644 --- a/audio/vorbis/vorbis.go +++ b/audio/vorbis/vorbis.go @@ -34,8 +34,7 @@ type decoded struct { func (d *decoded) readUntil(posInBytes int) error { c := 0 for len(d.data) < posInBytes/2 { - // TODO: What if the channel is closed? - buffer := make([]float32, 4096) + buffer := make([]float32, 8192) n, err := d.decoder.Read(buffer) if n > 0 { d.data = append(d.data, buffer[:n]...)