From 38e36dedc1dfe78e8a5a9d7e29c84c45aead2c20 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 6 Mar 2016 18:25:52 +0900 Subject: [PATCH] audio: Remove padding 0 values --- exp/audio/audio.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/exp/audio/audio.go b/exp/audio/audio.go index f83cf1dce..09039577e 100644 --- a/exp/audio/audio.go +++ b/exp/audio/audio.go @@ -64,11 +64,6 @@ func (s *mixedPlayersStream) Read(b []byte) (int, error) { } ll = min(len(p.buf)/4*4, ll) } - for _, p := range closed { - if len(p.buf) < ll { - p.buf = append(p.buf, make([]byte, ll-len(p.buf))...) - } - } for i := 0; i < ll/2; i++ { x := 0 for p := range s.context.players {