IAudioSamples

Properties

Link copied to clipboard
abstract val channels: Int
Link copied to clipboard
abstract val totalSamples: Int

Functions

Link copied to clipboard
abstract operator fun get(channel: Int, sample: Int): Short
Link copied to clipboard
open fun getFloat(channel: Int, sample: Int): Float
Link copied to clipboard
fun IAudioSamples.interleaved(out: AudioSamplesInterleaved = AudioSamplesInterleaved(channels, totalSamples)): AudioSamplesInterleaved
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open fun isNotEmpty(): Boolean
Link copied to clipboard
open fun scaleVolume(scale: Double): IAudioSamples
open fun scaleVolume(channelScales: DoubleArray): IAudioSamples
abstract fun scaleVolume(scale: Float): IAudioSamples
abstract fun scaleVolume(channelScales: FloatArray): IAudioSamples
Link copied to clipboard
fun IAudioSamples.separated(out: AudioSamples = AudioSamples(channels, totalSamples)): AudioSamples
Link copied to clipboard
abstract operator fun set(channel: Int, sample: Int, value: Short)
Link copied to clipboard
open fun setFloat(channel: Int, sample: Int, value: Float)
Link copied to clipboard
open fun setFloatStereo(sample: Int, l: Float, r: Float)