createBuffer

fun createBuffer(numberOfChannels: Int, length: Int, sampleRate: Float): AudioBuffer(source)

MDN Reference