mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +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 {
|
if n > 0 {
|
||||||
js.CopyBytesToJS(dst, buf[:n])
|
js.CopyBytesToJS(dst, buf[:n])
|
||||||
p.v.Call("write", dst, size)
|
p.v.Call("write", dst, n)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
Loading…
Reference in New Issue
Block a user