Skip to main content

microphone_open

Function microphone_open 

Source
pub fn microphone_open() -> i32
Expand description

Starts microphone capture (mono f32 ring buffer). Gated by an in-browser permission prompt on first use per origin.

Returns 0 on success. Negative codes: -1 user blocked, -2 no input device, -3 stream error, PERMISSION_PENDING while the prompt is showing (retry next frame).