audio: Remove audioEnabled

This commit is contained in:
Hajime Hoshi 2016-02-11 04:02:18 +09:00
parent 5687d9d0ef
commit bca9b0d3f1
3 changed files with 0 additions and 4 deletions

View File

@ -18,8 +18,6 @@ import (
"io"
)
var audioEnabled = false
type ReadSeekCloser interface {
io.ReadSeeker
io.Closer

View File

@ -91,5 +91,4 @@ func initialize() {
return
}
context = class.New()
audioEnabled = true
}

View File

@ -36,7 +36,6 @@ func play(src ReadSeekCloser, sampleRate int) error {
}
func initialize() {
audioEnabled = true
go func() {
for {
deleted := []*audio.Player{}