mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio: Remove audioEnabled
This commit is contained in:
parent
5687d9d0ef
commit
bca9b0d3f1
@ -18,8 +18,6 @@ import (
|
||||
"io"
|
||||
)
|
||||
|
||||
var audioEnabled = false
|
||||
|
||||
type ReadSeekCloser interface {
|
||||
io.ReadSeeker
|
||||
io.Closer
|
||||
|
@ -91,5 +91,4 @@ func initialize() {
|
||||
return
|
||||
}
|
||||
context = class.New()
|
||||
audioEnabled = true
|
||||
}
|
||||
|
@ -36,7 +36,6 @@ func play(src ReadSeekCloser, sampleRate int) error {
|
||||
}
|
||||
|
||||
func initialize() {
|
||||
audioEnabled = true
|
||||
go func() {
|
||||
for {
|
||||
deleted := []*audio.Player{}
|
||||
|
Loading…
Reference in New Issue
Block a user