diff --git a/audio/mux.go b/audio/mux.go index ffc28dc72..2d8983680 100644 --- a/audio/mux.go +++ b/audio/mux.go @@ -97,6 +97,9 @@ func (m *mux) Read(b []byte) (int, error) { if err != nil { return 0, err } + if l > len(buf)*2 { + l = len(buf) * 2 + } b16s = append(b16s, buf) }