SoundChannelGroup

class SoundChannelGroup(volume: Double = 1.0, pitch: Double = 1.0, panning: Double = 0.0) : SoundChannelBase, SoundChannelPlay, Extra

Constructors

Link copied to clipboard
constructor(volume: Double = 1.0, pitch: Double = 1.0, panning: Double = 0.0)

Properties

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
open override var pitch: Double
Link copied to clipboard
Link copied to clipboard
open override var position: Vector3
Link copied to clipboard
open override val state: SoundChannelState
Link copied to clipboard
open override var volume: Double

Functions

Link copied to clipboard
fun add(channel: SoundChannelBase)
Link copied to clipboard
suspend fun SoundChannelBase.await()
Link copied to clipboard
suspend fun SoundProps.fadeIn(time: Duration = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
suspend fun SoundChannelBase.fadeInResume(time: Duration = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
suspend fun SoundProps.fadeOut(time: Duration = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
suspend fun SoundChannelBase.fadeOutPause(time: Duration = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
suspend fun SoundProps.fadeTo(volume: Double, time: Duration = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard
open fun onCompleted(coroutineContext: CoroutineContext, block: () -> Unit)
Link copied to clipboard
open override fun pause()
Link copied to clipboard
open override fun play(coroutineContext: CoroutineContext, sound: Sound, params: PlaybackParameters = PlaybackParameters.DEFAULT): SoundChannel
open suspend fun play(sound: Sound, params: PlaybackParameters = PlaybackParameters.DEFAULT): SoundChannel
open suspend fun play(sound: Sound, times: PlaybackTimes, startTime: Duration = 0.seconds): SoundChannel
open fun play(coroutineContext: CoroutineContext, sound: Sound, times: PlaybackTimes, startTime: Duration = 0.seconds): SoundChannel
Link copied to clipboard
open suspend fun playAndWait(sound: Sound, params: PlaybackParameters, progress: SoundChannel.(current: Duration, total: Duration) -> Unit = { current, total -> })
open suspend fun playAndWait(sound: Sound, times: PlaybackTimes = 1.playbackTimes, startTime: Duration = 0.seconds, progress: SoundChannel.(current: Duration, total: Duration) -> Unit = { current, total -> })
Link copied to clipboard
open suspend fun playForever(sound: Sound, startTime: Duration = 0.seconds): SoundChannel
open fun playForever(coroutineContext: CoroutineContext, sound: Sound, startTime: Duration = 0.seconds): SoundChannel
Link copied to clipboard
fun register(channel: SoundChannelBase, coroutineContext: CoroutineContext)
Link copied to clipboard
fun remove(channel: SoundChannelBase)
Link copied to clipboard
open override fun reset()
Link copied to clipboard
open override fun resume()
Link copied to clipboard
open override fun stop()
Link copied to clipboard
suspend fun SoundChannelBase.togglePausedFaded(enable: Boolean? = null, time: Duration = DEFAULT_FADE_TIME, easing: Easing = DEFAULT_FADE_EASING)
Link copied to clipboard