mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
audio: Fix a comment
This commit is contained in:
parent
ca2f85f3d1
commit
4c2bbd47a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user