mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
useMicrophoneLevel opens a capture of the given microphone for as long as it is enabled, reports a smoothed 0..1 level per animation frame, and tears the capture down on disable, device change or unmount, including while the capture is still being acquired. A denied permission and a microphone that cannot be opened are reported as distinct states. AudioLevelMeter renders that state as a row of bars, focusable and announcing its state to a screen reader only while focused, with a hint in place of the meter when permission is denied and a greyed-out meter when the microphone is unavailable. Nothing renders it yet; the audio menu picks it up next. Spec: FEATURES_SPEC/2026-09_Audio_Quick_Menu.md, slice 2 — AC8, AC11, AC13, AC15. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>