Capture Session
One run of the microphone, from AudioCapture.start to stop or cancel.
Properties
Raw PCM, one chunk per CaptureConfig.chunkDuration.
What this session was started with.
The microphone the system is actually recording from, or null when it does not say. It can differ from CaptureConfig.device: the system has the final word on routing.
Loudness of the most recent chunk; updated once per CaptureConfig.chunkDuration.
level as 0..1, ready for a meter or an animation: run through a LevelNormalizer so ordinary speech moves it well on every device. 0 while paused or stopped.
The voice processing that actually took effect, which can be less than was asked for: an Android device may lack an effect, and iOS cannot switch its effects separately. null when none is active.
Functions
Stops delivering audio and releases the microphone, keeping the session and its file open. Works while CaptureState.Recording or paused by an interruption; no-op otherwise.
Picks up after pause or an interruption. No-op unless state is CaptureState.Paused.