audio: Refactoring

This commit is contained in:
Hajime Hoshi 2017-07-15 16:31:08 +09:00
parent 5fd8fe839b
commit b15ad9c1d0

View File

@ -420,7 +420,6 @@ func (p *Player) readToBuffer(length int) (int, error) {
return 0, err return 0, err
} }
p.buf = append(p.buf, b[:n]...) p.buf = append(p.buf, b[:n]...)
b = b[:n]
return len(p.buf), nil return len(p.buf), nil
} }