mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 04:22:05 +01:00
audio/mp3: Revert calling Gosched(): Looks like this doesn't make sense
This commit is contained in:
parent
2155b2f04a
commit
a74cf21f21
@ -21,7 +21,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"runtime"
|
|
||||||
|
|
||||||
"github.com/gopherjs/gopherjs/js"
|
"github.com/gopherjs/gopherjs/js"
|
||||||
"github.com/hajimehoshi/ebiten/audio"
|
"github.com/hajimehoshi/ebiten/audio"
|
||||||
@ -193,9 +192,6 @@ func decode(context *audio.Context, buf []byte) (*Stream, error) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// GopherJS's bug? Without Gosched(), receiving might block forever.
|
|
||||||
runtime.Gosched()
|
|
||||||
|
|
||||||
if err := <-ch; err != nil {
|
if err := <-ch; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user