diff --git a/audio/internal/convert/float32.go b/audio/internal/convert/float32.go index a86e0357b..3a65cc65e 100644 --- a/audio/internal/convert/float32.go +++ b/audio/internal/convert/float32.go @@ -61,7 +61,9 @@ func (f *f32Reader) Read(buf []byte) (int, error) { for ll < l { ll *= 2 } - f.fbuf = make([]float32, ll) + if len(f.fbuf) < ll { + f.fbuf = make([]float32, ll) + } n, err := f.r.Read(f.fbuf[:l]) if err != nil && err != io.EOF {