SoundAudioStream
class SoundAudioStream(coroutineContext: CoroutineContext, val stream: AudioStream, var soundProvider: NativeSoundProvider, val closeStream: Boolean = false, val name: String = "Unknown", val onComplete: suspend () -> Unit? = null) : Sound
Constructors
Link copied to clipboard
constructor(coroutineContext: CoroutineContext, stream: AudioStream, soundProvider: NativeSoundProvider, closeStream: Boolean = false, name: String = "Unknown", onComplete: suspend () -> Unit? = null)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun play(coroutineContext: CoroutineContext, times: PlaybackTimes, startTime: TimeSpan = 0.seconds): SoundChannel
open override fun play(coroutineContext: CoroutineContext, params: PlaybackParameters): SoundChannel
Link copied to clipboard
suspend fun playAndWait(params: PlaybackParameters, progress: SoundChannel.(TimeSpan, TimeSpan) -> Unit = { current, total -> })
suspend fun playAndWait(times: PlaybackTimes = 1.playbackTimes, startTime: TimeSpan = 0.seconds, progress: SoundChannel.(TimeSpan, TimeSpan) -> Unit = { current, total -> })
Link copied to clipboard
Link copied to clipboard
fun playNoCancel(times: PlaybackTimes = PlaybackTimes.ONE, startTime: TimeSpan = 0.seconds): SoundChannel
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AudioStreamable.withEcho(bufferLen: Int = 2048, config: AudioStreamEchoConfig = AudioStreamEchoConfig()): Sound
Link copied to clipboard
suspend fun AudioStreamable.withProcessor(block: suspend (inp: AudioStream, outp: AudioSamplesDeque) -> Unit): Sound