AudioPlatformOutput
class AudioPlatformOutput(val listener: SoundListenerProps, val channels: Int, val frequency: Int, gen: AudioPlatformOutputGen, val dispatcher: CoroutineDispatcher = Dispatchers.AUDIO, val block: suspend AudioPlatformOutput.() -> Unit = {
val buffer = AudioSamplesInterleaved(channels, DEFAULT_BLOCK_SIZE)
while (running) {
genSafe(buffer)
delay(1L)
}
}) : AutoCloseable, SoundProps, Extra
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(1L)
}
})