AudioClip

interface AudioClip : Disposable

A fully ready clip of audio that can be played.

Author

Colton Daily

Functions

Link copied to clipboard
abstract fun dispose()
Link copied to clipboard
abstract fun pause()

Pause the current audio clip.

Link copied to clipboard
abstract fun play(volume: Float = this.volume, loop: Boolean = false)

Play this audio clip.

Link copied to clipboard
abstract fun resume()

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

Link copied to clipboard
abstract fun stop()

Stops the audio from playing.

Properties

Link copied to clipboard
abstract val duration: Duration

The duration of audio.

Link copied to clipboard
abstract var volume: Float

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard