mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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.
|
// In async mode, the audio never stops even when the game stops.
|
||||||
func (c *Context) Update() error {
|
func (c *Context) Update() error {
|
||||||
// Initialize c.driver lazily to enable calling NewContext in an 'init' function.
|
// Initialize c.driver lazily to enable calling NewContext in an 'init' function.
|
||||||
// Accessing driver functions requires that the environment is already initialized,
|
// Accessing driver functions requires the environment to be already initialized,
|
||||||
// but if Ebiten is used for a shared library, how init functions are called is unexpectable.
|
// 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.
|
// e.g. a variable for JVM on Android might not be set.
|
||||||
if c.driver == nil {
|
if c.driver == nil {
|
||||||
// TODO: Rename this other than player
|
// TODO: Rename this other than player
|
||||||
|
Loading…
Reference in New Issue
Block a user