Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class AudioBufferOrHTMLMediaElement(val audioBuffer: AudioBuffer?, val htmlAudioElement: HTMLAudioElement?)
class AudioBufferOrHTMLMediaElement(val audioBuffer: AudioBuffer?, val htmlAudioElement: HTMLAudioElement?)
Link copied to clipboard
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
Link copied to clipboard
Function might be called from different threads, so code must be thread-safe.
Link copied to clipboard
class AudioPlatformOutputSimple(val init: suspend (AudioSamplesInterleaved) -> Unit = { }, val output: suspend (AudioSamplesInterleaved) -> Unit = { }, val close: suspend (AudioSamplesInterleaved) -> Unit = { }, val paused: (paused: Boolean) -> Unit = { }, unit: Unit = Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class AudioSamples(val channels: Int, val totalSamples: Int, val data: Array<AudioSampleArray> = Array(channels) { AudioSampleArray(totalSamples) })
Link copied to clipboard
class AudioSamplesInterleaved(val channels: Int, val totalSamples: Int, val data: AudioSampleArray = AudioSampleArray(totalSamples * channels))
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object HtmlSimpleSound
object HtmlSimpleSound
Link copied to clipboard
Link copied to clipboard
interface ReadonlySoundProps
Link copied to clipboard
interface SoundListenerProps
Link copied to clipboard
Link copied to clipboard