fix #14740: record detected calls from the output device

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-06 10:49:02 +01:00
co-authored by Claude Opus 5.5
parent 1cb1033cbb
commit 5dfe1d9357
12 changed files with 397 additions and 346 deletions
+5 -4
View File
@@ -213,12 +213,13 @@ pub fn start_manual(app: &AppHandle) -> CmdResult<CallId> {
Ok(call_id)
}
/// Starts recording a call that detection found (`app` is its display
/// name, `root_pid` the process tree whose audio is the far end).
pub fn start_detected(app: &AppHandle, name: &str, root_pid: u32) -> CmdResult<CallId> {
/// Starts recording a call that detection found (`name` is its display
/// name, `exe` and `root_pid` identify the call app, whose output device
/// is recorded).
pub fn start_detected(app: &AppHandle, name: &str, exe: &str, root_pid: u32) -> CmdResult<CallId> {
let call_id = app
.state::<AppState>()
.start_detected_recording(name, root_pid)?;
.start_detected_recording(name, exe, root_pid)?;
on_started(app, call_id);
Ok(call_id)
}