diff --git a/audio/mux.go b/audio/mux.go index 6cff9f2d2..d480bf105 100644 --- a/audio/mux.go +++ b/audio/mux.go @@ -87,6 +87,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) }