SoundChannel

abstract class SoundChannel(val sound: Sound) : SoundChannelBase, Extra

Inheritors

Constructors

Link copied to clipboard
constructor(sound: Sound)

Properties

Link copied to clipboard
open var current: TimeSpan
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
open override var panning: Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var pitch: Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val state: SoundChannelState
Link copied to clipboard
open val total: TimeSpan
Link copied to clipboard
open override var volume: Double

Functions

Link copied to clipboard
suspend fun SoundChannelBase.await()
suspend fun SoundChannel.await(progress: SoundChannel.(TimeSpan, TimeSpan) -> Unit = { current, total -> })
Link copied to clipboard
suspend fun SoundChannel.fadeIn(time: TimeSpan = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
suspend fun SoundChannel.fadeInResume(time: TimeSpan = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
suspend fun SoundChannel.fadeOut(time: TimeSpan = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
suspend fun SoundChannel.fadeOutPause(time: TimeSpan = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
suspend fun SoundChannel.fadeTo(volume: Double, time: TimeSpan = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
open fun pause()
Link copied to clipboard
override fun reset()
Link copied to clipboard
open fun resume()
Link copied to clipboard
abstract override fun stop()
Link copied to clipboard
Link copied to clipboard
suspend fun SoundChannel.togglePausedFaded(enable: Boolean? = null, time: TimeSpan = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard