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