AudioStream

A stream of audio that can be played.

Author

Colton Daily

Functions

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

Pauses the stream at the current position.

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

Play this stream of audio.

Link copied to clipboard
abstract fun resume()

Resumes the current stream for the current position.

Link copied to clipboard
abstract fun stop()

Stops the current stream from playing and resets it to the beginning.

Properties

Link copied to clipboard
abstract var looping: Boolean

Setting this will allow it to loop without resetting.

Link copied to clipboard
abstract val playing: Boolean
Link copied to clipboard
abstract var volume: Float

Settings this will adjust the current volume of the stream.

Inheritors

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