mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio: Don't use nosync GopherJS
nosync package is good in terms of performance, but this assumes that duplicated lock never happens. As audio package runs multiple goroutines, theoretically duplicated lock can happen, and it looks like this is an actual case (#603). This change replaces nosync usages with regular sync usages. Probably I'll deprecate nosync usages via internal/sync package everywhere in Ebiten. This might fix #603.
This commit is contained in:
parent
c22857ca89
commit
df048d9bf6
@ -40,13 +40,13 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"runtime"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/hajimehoshi/oto"
|
||||
|
||||
"github.com/hajimehoshi/ebiten/internal/clock"
|
||||
"github.com/hajimehoshi/ebiten/internal/hooks"
|
||||
"github.com/hajimehoshi/ebiten/internal/sync"
|
||||
"github.com/hajimehoshi/ebiten/internal/web"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user