Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class AudioBufferOrHTMLMediaElement(val audioBuffer: AudioBuffer?, val htmlAudioElement: HTMLAudioElement?)
Link copied to clipboard
class AudioBufferSound(val buffer: AudioBufferOrHTMLMediaElement, val url: String, coroutineContext: CoroutineContext, val name: String = "unknown") : Sound
Link copied to clipboard
Link copied to clipboard
class AudioChannel(val nativeSoundProvider: NativeSoundProvider = korlibs.audio.sound.nativeSoundProvider)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class AudioSamples(val channels: Int, val totalSamples: Int, val data: Array<ShortArray> = Array(channels) { ShortArray(totalSamples) }) : IAudioSamples
Link copied to clipboard
Link copied to clipboard
class AudioSamplesInterleaved(val channels: Int, val totalSamples: Int, val data: ShortArray = ShortArray(totalSamples * channels)) : IAudioSamples
Link copied to clipboard
class AudioSamplesProcessor(val channels: Int, val totalSamples: Int, val data: Array<FloatArray> = Array(channels) { FloatArray(totalSamples) })
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface AudioStreamable
Link copied to clipboard
Link copied to clipboard
class CoreAudioGenerator(val sampleRate: Int, val nchannels: Int, val numBuffers: Int = 3, val bufferSize: Int = 4096, val coroutineContext: CoroutineContext, val generatorCore: CoreAudioGenerator.(data: CPointer<ShortVar>, dataSize: Int) -> Unit) : MyCoreAudioOutputCallback
Link copied to clipboard
Link copied to clipboard
class CoreAudioNewPlatformAudioOutput(coroutineContext: CoroutineContext, freq: Int, nchannels: Int, gen: (AudioSamplesInterleaved) -> Unit) : NewPlatformAudioOutput
Link copied to clipboard
open class DequeBasedPlatformAudioOutput(val coroutineContext: CoroutineContext, val frequency: Int) : PlatformAudioOutput
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object HtmlSimpleSound
Link copied to clipboard
interface IAudioSamples
Link copied to clipboard
class JsNewPlatformAudioOutput(val coroutineContext: CoroutineContext, nchannels: Int, val frequency: Int, gen: (AudioSamplesInterleaved) -> Unit) : NewPlatformAudioOutput
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface MyCoreAudioOutputCallback
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class NewPlatformAudioOutput(val coroutineContext: CoroutineContext, val channels: Int, val frequency: Int, gen: (AudioSamplesInterleaved) -> Unit) : Disposable, SoundProps
Link copied to clipboard
Link copied to clipboard
open class PlatformAudioOutput(val coroutineContext: CoroutineContext, val frequency: Int) : Disposable, SoundProps
Link copied to clipboard
open class PlatformAudioOutputBasedOnNew(val soundProvider: NativeSoundProvider, val coroutineContext: CoroutineContext, val frequency: Int) : DequeBasedPlatformAudioOutput
Link copied to clipboard
data class PlaybackParameters(val times: PlaybackTimes = 1.playbackTimes, val startTime: TimeSpan = 0.seconds, val bufferTime: TimeSpan = 0.16.seconds, val volume: Double = 1.0, val pitch: Double = 1.0, val panning: Double = 0.0, val onCancel: () -> Unit? = null, val onFinish: () -> Unit? = null) : ReadonlySoundProps
Link copied to clipboard
Link copied to clipboard
interface ReadonlySoundProps
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class SoundAudioData(coroutineContext: CoroutineContext, val audioData: AudioData, var soundProvider: NativeSoundProvider, val closeStream: Boolean = false, val name: String = "Unknown", val onComplete: suspend () -> Unit? = null) : Sound
Link copied to clipboard
class SoundAudioStream(coroutineContext: CoroutineContext, val stream: AudioStream, var soundProvider: NativeSoundProvider, val closeStream: Boolean = false, val name: String = "Unknown", val onComplete: suspend () -> Unit? = null) : Sound
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class SoundChannelGroup(volume: Double = 1.0, pitch: Double = 1.0, panning: Double = 0.0) : SoundChannelBase
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object SoundUtils
Link copied to clipboard
Link copied to clipboard
abstract class ThreadBasedPlatformAudioOutput(val coroutineContext: CoroutineContext, val frequency: Int) : DequeBasedPlatformAudioOutput
Link copied to clipboard
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun AudioSamplesInterleaved.applyProps(speed: Double, panning: Double, volume: Double): AudioSamplesInterleaved
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun SoundChannel.await(progress: SoundChannel.(TimeSpan, TimeSpan) -> Unit = { current, total -> })
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AudioData.encodeToFile(file: VfsFile, format: AudioFormats = defaultAudioFormats, props: AudioEncodingProps = AudioEncodingProps.DEFAULT)
Link copied to clipboard
Link copied to clipboard
fun AudioSamples.interleaved(out: AudioSamplesInterleaved = AudioSamplesInterleaved(channels, totalSamples)): AudioSamplesInterleaved
fun IAudioSamples.interleaved(out: AudioSamplesInterleaved = AudioSamplesInterleaved(channels, totalSamples)): AudioSamplesInterleaved
Link copied to clipboard
Link copied to clipboard
suspend fun AudioStream.playAndWait(times: PlaybackTimes = 1.playbackTimes, startTime: TimeSpan = 0.seconds, bufferTime: TimeSpan = 0.1.seconds)
Link copied to clipboard
suspend fun VfsFile.readAudioData(formats: AudioFormat = defaultAudioFormats, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): AudioData
Link copied to clipboard
suspend fun VfsFile.readAudioStream(formats: AudioFormat = defaultAudioFormats + nativeSoundProvider.audioFormats, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): AudioStream
Link copied to clipboard
suspend fun VfsFile.readAudioStreamOrNull(formats: AudioFormat = defaultAudioFormats + nativeSoundProvider.audioFormats, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): AudioStream?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun AudioStream.withProcessor(block: suspend (inp: AudioStream, outp: AudioSamplesDeque) -> Unit): AudioStream
suspend fun AudioStreamable.withProcessor(block: suspend (inp: AudioStream, outp: AudioSamplesDeque) -> Unit): Sound
Link copied to clipboard
suspend fun VfsFile.writeAudio(data: AudioData, formats: AudioFormat = defaultAudioFormats + nativeSoundProvider.audioFormats, props: AudioEncodingProps = AudioEncodingProps.DEFAULT)