audio: Fix a comment

This commit is contained in:
Hajime Hoshi 2016-05-26 23:33:12 +09:00
parent ca2f85f3d1
commit 4c2bbd47a1

View File

@ -193,8 +193,9 @@ func NewContext(sampleRate int) (*Context, error) {
// In async mode, the audio never stops even when the game stops.
func (c *Context) Update() error {
// Initialize c.driver lazily to enable calling NewContext in an 'init' function.
// Accessing driver functions requires that the environment is already initialized,
// but if Ebiten is used for a shared library, how init functions are called is unexpectable.
// Accessing driver functions requires the environment to be already initialized,
// but if Ebiten is used for a shared library, the timing when init functions are called
// is unexpectable.
// e.g. a variable for JVM on Android might not be set.
if c.driver == nil {
// TODO: Rename this other than player