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" "io"
) )
var audioEnabled = false
type ReadSeekCloser interface { type ReadSeekCloser interface {
io.ReadSeeker io.ReadSeeker
io.Closer io.Closer

View File

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

View File

@ -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{}