mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42:02 +01:00
audio: Smaller buffers (experimental)
This commit is contained in:
parent
5679103d71
commit
4a06198160
@ -259,7 +259,7 @@ func (c *Context) loop() {
|
|||||||
c.pingCount--
|
c.pingCount--
|
||||||
c.m.Unlock()
|
c.m.Unlock()
|
||||||
|
|
||||||
const n = 4096
|
const n = 256
|
||||||
if _, err = io.CopyN(p, c.players, n); err != nil {
|
if _, err = io.CopyN(p, c.players, n); err != nil {
|
||||||
audiobinding.SetError(err)
|
audiobinding.SetError(err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user