WebAudioClip

class WebAudioClip(val assetPath: String) : AudioClip

Author

Colton Daily

Constructors

Link copied to clipboard
fun WebAudioClip(assetPath: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open override fun pause()

Pause the current audio clip.

Link copied to clipboard
open override fun play(volume: Float, loop: Boolean)

Play this audio clip.

Link copied to clipboard
open override fun resume()

Resumes the current audio from the position it was paused in.

Link copied to clipboard
open override fun stop()

Stops the audio from playing.

Properties

Link copied to clipboard
Link copied to clipboard
open override val duration: Duration

The duration of audio.

Link copied to clipboard
open override var volume: Float = 1.0f