mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
audio: Use bigger buffer to reduce noise (#149)
This commit is contained in:
parent
14d28ea122
commit
e8895d8f35
@ -98,7 +98,7 @@ func initialize() {
|
|||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
const bufferSize = 1024
|
const bufferSize = 2048
|
||||||
c := context.Get("currentTime").Float()
|
c := context.Get("currentTime").Float()
|
||||||
for _, a := range audioProcessors {
|
for _, a := range audioProcessors {
|
||||||
if a.position < c {
|
if a.position < c {
|
||||||
|
Loading…
Reference in New Issue
Block a user