AudioSamplesInterleaved

class AudioSamplesInterleaved(val channels: Int, val totalSamples: Int, val data: ShortArray = ShortArray(totalSamples * channels)) : IAudioSamples

Constructors

Link copied to clipboard
constructor(channels: Int, totalSamples: Int, data: ShortArray = ShortArray(totalSamples * channels))

Properties

Link copied to clipboard
open override val channels: Int
Link copied to clipboard
Link copied to clipboard
open override val totalSamples: Int

Functions

Link copied to clipboard
Link copied to clipboard
open operator override 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 override fun scaleVolume(scale: Float): AudioSamplesInterleaved
open override fun scaleVolume(channelScales: FloatArray): AudioSamplesInterleaved
open fun scaleVolume(scale: Double): IAudioSamples
open fun scaleVolume(channelScales: DoubleArray): IAudioSamples
Link copied to clipboard
fun IAudioSamples.separated(out: AudioSamples = AudioSamples(channels, totalSamples)): AudioSamples
Link copied to clipboard
open operator override 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)
Link copied to clipboard
open override fun toString(): String