Create a recorder using a Worker module; capture begins after calling start.
optionsReturn the number of capture channels.
Return the speaker position mapping of the capture channels.
Return the current recording device name.
Return the current sample rate in Hz.
Return the first Worker or subclass callback error, or undefined if none.
Return current Worker or subclass callback queue statistics; the native fast path returns undefined.
ProtectedonReceive a completed native recording buffer.
bufferProtectedrecorderEnable recording callbacks on the owning JS thread as needed; ordinary Worker recorders do not use this pipeline.
Set the capture channel count; wait for the current asynchronous recording operation to finish before calling.
countAsynchronously switch recording devices and return whether it succeeded. Runs in invocation order; must not be called from subclass callbacks.
nameAsynchronously initialize capture, defaulting to 44100 Hz; return false if already capturing, rejected, or startup fails. Do not restart from subclass callbacks; await stop() externally before starting the next session.
sampleRateAsynchronously stop capture and await remaining samples and onStop. Inside subclass callbacks, await stop() only waits for the device to stop, avoiding a self-wait. Draining continues after the callback exits; await stop() again externally to wait for full completion.
StaticgetReturn the names of currently available recording devices.
StaticgetReturn the default recording device name.
StaticisReturn whether the system supports audio capture.
Capture device audio and process interleaved 16-bit PCM in a Node Worker.