klyn.audio.Microphone.read
method
public read() as AudioClip
Description

Waits for a bounded PCM block; null means stopped and completely drained. Returned clips do not depend on the microphone lifetime. Never call this blocking method from a GUI event callback.

Throws
  • IOException for capture failure, overrun or a closed microphone.
Example

block = microphone.read(); if block is not null: print(block.frames)