audio/internal/go2cpp: Bug fix: Pass the correct size

This commit is contained in:
Hajime Hoshi 2021-01-11 18:07:20 +09:00
parent 9cc5bd80f9
commit 8e6c3a570e

View File

@ -166,7 +166,7 @@ func (p *Player) loop() {
}
if n > 0 {
js.CopyBytesToJS(dst, buf[:n])
p.v.Call("write", dst, size)
p.v.Call("write", dst, n)
}
if err == io.EOF {