AudioPlatformOutput
Constructors
Link copied to clipboard
constructor(listener: SoundListenerProps, channels: Int, frequency: Int, gen: AudioPlatformOutputGen, dispatcher: CoroutineDispatcher = Dispatchers.AUDIO, block: suspend AudioPlatformOutput.() -> Unit = {
val buffer = AudioSamplesInterleaved(channels, DEFAULT_BLOCK_SIZE)
while (running) {
genSafe(buffer)
delay(timeMillis = 1)
}
})
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun SoundProps.fadeIn(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
Link copied to clipboard
Link copied to clipboard