mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio/internal/go2cpp: Bug fix: Pass the correct size
This commit is contained in:
parent
9cc5bd80f9
commit
8e6c3a570e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user