mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
audio: A little better buffer size for Android Chrome
This commit is contained in:
parent
ae6bdf23f2
commit
e14257d76d
@ -235,7 +235,7 @@ func (c *Context) loop() {
|
||||
// On browsers, 8192 [bytes] should work with any sample rate except for Android Chrome.
|
||||
bufferSize := 8192
|
||||
if web.IsAndroidChrome() {
|
||||
bufferSize *= 2
|
||||
bufferSize = 12000
|
||||
}
|
||||
p, err := oto.NewPlayer(c.sampleRate, channelNum, bytesPerSample, bufferSize)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user