read

open fun read(directBuffer: ByteBuffer, numBytes: Int): Int

Call when you need mic samples. This method will block until numBytes worth of samples are ready.