load

actual open override fun load(context: Any?)

Used to load an Audio file when AudioState.NONE.

Sets the audioState to AudioState.READY

Example:

val audio = Audio(audioUrl) // AutoPlay defaults to "false"
audio.play() // plays the sound immediately
actual open fun load(context: Any?)
expect fun load(context: Any? = null)

Used to load an Audio file when AudioState.NONE.

Sets the audioState to AudioState.READY

Example:

val audio = Audio(audioUrl) // AutoPlay defaults to "false"
audio.play() // plays the sound immediately
actual open override fun load(context: Any?)

When overridden, used to load an Audio file when AudioState.NONE.

Sets the audioState to AudioState.READY

Example:

val audio = Audio(audioUrl) // AutoPlay defaults to "false"
audio.play() // plays the sound immediately
actual open override fun load(context: Any?)

When overridden, used to load an Audio file when AudioState.NONE.

Sets the audioState to AudioState.READY

Example:

val audio = Audio(audioUrl) // AutoPlay defaults to "false"
audio.play() // plays the sound immediately
actual open override fun load(context: Any?)

When overridden, used to load an Audio file when AudioState.NONE.

Sets the audioState to AudioState.READY

Example:

val audio = Audio(audioUrl) // AutoPlay defaults to "false"
audio.play() // plays the sound immediately