CoreAudioGenerator

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

Constructors

Link copied to clipboard
constructor(sampleRate: Int, nchannels: Int, numBuffers: Int = 3, bufferSize: Int = 4096, coroutineContext: CoroutineContext, generatorCore: CoreAudioGenerator.(data: CPointer<ShortVar>, dataSize: Int) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
var buffers: CPointer<CPointerVarOf<CPointer<AudioQueueBuffer>>>?
Link copied to clipboard
val bufferSize: Int = 4096
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val numBuffers: Int = 3
Link copied to clipboard
var queue: CPointerVarOf<CPointer<<Error class: unknown class>>>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun dispose()
Link copied to clipboard
open override fun generateOutput(data: CPointer<ShortVar>, dataSize: Int)
Link copied to clipboard
fun start()