AudioBuffer

Constructors

Link copied to clipboard
constructor(numberOfChannels: Int, numberOfFrames: Int, isInterleaved: Boolean, sampleRate: Int, audioData: AudioData)
constructor(numberOfChannels: Int, numberOfBytes: Int, audioSampleFormat: AudioSampleFormat, isInterleaved: Boolean, sampleRate: Int, audioData: AudioData)

Functions

Link copied to clipboard
open external override fun close()
Link copied to clipboard
fun copyFrom(buffer: FloatBuffer, numberOfSamples: Int): Long
fun copyFrom(floatArray: FloatArray, numberOfSamples: Int): Long
Link copied to clipboard
fun copyFromByteArray(byteArray: ByteArray, numberOfBytes: Int, audioSampleFormat: AudioSampleFormat): Long
Link copied to clipboard
external fun copyFromFloatArray(floatArray: FloatArray, numberOfSamples: Int): Long
Link copied to clipboard
external fun copyFromFloatBuffer(buffer: FloatBuffer, numberOfSamples: Int): Long
Link copied to clipboard
fun getByteArray(audioSampleFormat: AudioSampleFormat): ByteArray
Link copied to clipboard
external fun getIsInterleaved(): Boolean
Link copied to clipboard
fun getNumberOfBytes(audioSampleFormat: AudioSampleFormat): Int
Link copied to clipboard
external fun getNumberOfChannels(): Int
Link copied to clipboard
external fun getNumberOfFrames(): Int
Link copied to clipboard
external fun getSample(channel: Int, sampleIndex: Int): Float
Link copied to clipboard
external fun getSampleRate(): Int
Link copied to clipboard
external fun init(numberOfChannels: Int, numberOfFrames: Int, isInterleaved: Boolean, sampleRate: Int, audioData: AudioData)
open fun init()
Link copied to clipboard
fun setNumberOfBytes(numberOfBytes: Int, numberOfChannels: Int, audioSampleFormat: AudioSampleFormat)
Link copied to clipboard
external fun setNumberOfFrames(newValue: Int)
Link copied to clipboard
external fun setSample(channel: Int, sampleIndex: Int, value: Float)
Link copied to clipboard
external fun setSampleRate(newValue: Int)