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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user