LazyNativeSoundProvider
Functions
Link copied to clipboard
open override fun createNewPlatformAudioOutput(coroutineContext: CoroutineContext, channels: Int, frequency: Int, gen: (AudioSamplesInterleaved) -> Unit): NewPlatformAudioOutput
suspend fun createNewPlatformAudioOutput(nchannels: Int, freq: Int = 44100, gen: (AudioSamplesInterleaved) -> Unit): NewPlatformAudioOutput
Link copied to clipboard
Link copied to clipboard
open override fun createPlatformAudioOutput(coroutineContext: CoroutineContext, freq: Int): PlatformAudioOutput
Link copied to clipboard
open suspend override fun createSound(data: AudioData, formats: AudioFormats, streaming: Boolean, name: String): Sound
open suspend override fun createSound(vfs: Vfs, path: String, streaming: Boolean, props: AudioDecodingProps): Sound
open suspend override fun createSound(data: ByteArray, streaming: Boolean, props: AudioDecodingProps, name: String): Sound
suspend fun createSound(file: FinalVfsFile, streaming: Boolean = false, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): Sound
suspend fun createSound(file: VfsFile, streaming: Boolean = false, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): Sound
Link copied to clipboard
suspend fun createStreamingSound(stream: AudioStream, closeStream: Boolean = false, name: String = "Unknown", onComplete: suspend () -> Unit? = null): Sound
Link copied to clipboard
suspend fun playAndWait(stream: AudioStream, params: PlaybackParameters = PlaybackParameters.DEFAULT)