hex/src/audio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 7364c058da
labs: choose meeting audio (one app or one output device) (#2724)
Labs › Choose meeting audio adds a Computer audio row to Meetings › Settings: all computer audio, one output device, or one app playing audio, read by each OS capture source as it opens and on its route check, so a change applies mid-recording. A chosen source records silence while it is missing and never falls back to all audio.

macOS: Core Audio process taps (per app or with a device UID), Windows: WASAPI process loopback (Windows 10 2004+) and single-endpoint loopback, Linux: PipeWire node and sink targets.

Review fixes: one long-lived thread owns pw-dump, restarts it after a short backing-off wait when it ends, forgets its graph until the next dump answers, and keeps origin/dev's answers for call detection; a chosen app taps every Core Audio process it has, a tap that should be playing but never delivers is rebuilt on a backing-off schedule, and a Windows root is retried on its own thread while the others keep recording, never adopting a restarted stream whose worker already failed; Windows names an app by the process its WebView2 helpers belong to, lists WebView2 helpers with no host as nothing, and reads process start times only for the app listing; Linux adds and removes an app's pw-record captures in place, keeps them when the graph cannot be read, starts a fresh stall window for a capture that appears after silence, and sizes its queue for streams that start later; every source notices a changed choice on its route check; a chosen source needs System Audio Recording consent on macOS; Hex's own playback never lists as an app; a sink pw-record cannot name is skipped once per name, not once per read.

Also makes the Linux playing-app listing independent of pw-dump order: a browser whose first stream reports no application.name kept whichever name the hash map yielded first, which flaked running_output_streams_name_their_apps_and_node_targets and could show "chrome" instead of "Google Chrome".
2026-11-24 17:41:26 -05:00
..
hex_microphone fix(audio): stop using cpal default devices on Windows (#2622) 2026-11-23 22:08:04 -05:00
open Labs: voice isolation for dictation on macOS and iOS (#2425) (#2429) 2026-11-22 17:00:41 -05:00
recording_environment dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
recovering refactor(core): simplify engine slot, output plan, labs, updater, audio, and onboarding view (#2627) 2026-11-23 19:38:36 -08:00
browser_media.rs dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
call_input.rs Meetings: record the input the call app uses (#1086) (#1091) 2026-11-03 00:14:23 -05:00
default_endpoint.rs fix(audio): stop using cpal default devices on Windows (#2622) 2026-11-23 22:08:04 -05:00
devices.rs refactor(audio): split src/audio.rs into capability modules (#2246) 2026-11-21 13:06:57 -08:00
effect_holds.rs refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
fixture.rs refactor(audio): explicit owner/recovery states and composed OS audio control (#2485) 2026-11-22 22:46:17 -08:00
hex_microphone.rs verify the hex microphone driver's signature before installing it (#2767) 2026-11-24 16:58:01 -05:00
idle_sleep.rs
input_format.rs fix(audio): stop using cpal default devices on Windows (#2622) 2026-11-23 22:08:04 -05:00
input_level.rs Show the microphone's level on the recording toolbar and capsule (t1607) (#2217) 2026-11-21 10:04:34 -08:00
instant.rs refactor(audio): split src/audio.rs into capability modules (#2246) 2026-11-21 13:06:57 -08:00
interruption.rs windows, linux: keep a dictation press across a microphone reopen (#2098) 2026-11-20 16:58:08 -05:00
lid.rs Extract instant and lid from audio.rs 2026-10-31 18:57:51 -07:00
linger.rs fix(dictation): release the warm mic while the display sleeps or the screen is locked (#1956) 2026-11-18 02:34:47 -05:00
mix_format.rs windows: try iaudioclient3, interface activation and auto-convert wasapi paths (#1270) 2026-11-04 08:49:05 -05:00
open.rs fix(audio): stop using cpal default devices on Windows (#2622) 2026-11-23 22:08:04 -05:00
output_ducking.rs dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
output_route.rs labs: choose meeting audio (one app or one output device) (#2724) 2026-11-24 17:41:26 -05:00
overloads.rs audio: keep overload reporting off CoreAudio's real-time thread (#1643) 2026-11-10 13:17:35 -05:00
recording_environment.rs dictation: don't count audio before output suppression as missed opening speech (#2338) (#2514) 2026-11-23 07:09:11 -05:00
recovering.rs refactor(core): simplify engine slot, output plan, labs, updater, audio, and onboarding view (#2627) 2026-11-23 19:38:36 -08:00
recovery.rs fix: renegotiate the mic's sample rate after digital silence (#1575) (#1693) 2026-11-11 09:30:51 -05:00
routes.rs fix(audio): stop using cpal default devices on Windows (#2622) 2026-11-23 22:08:04 -05:00
stream.rs fix(audio): stop using cpal default devices on Windows (#2622) 2026-11-23 22:08:04 -05:00
system_idle.rs meetings: end a call that hangs up as the mac locks (#2685) (#2697) 2026-11-24 09:24:10 -05:00
transport.rs linux: move input_activity and input_route into input/ (#2150) 2026-11-21 01:53:36 -05:00
voice_filter.rs
voice_processing.rs Labs: voice isolation for dictation on macOS and iOS (#2425) (#2429) 2026-11-22 17:00:41 -05:00
wasapi_capture.rs fix(audio): stop using cpal default devices on Windows (#2622) 2026-11-23 22:08:04 -05:00