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
+3 -4
View File
@@ -2,9 +2,8 @@
//!
//! Streams are opened directly as 16 kHz mono `f32`, so the server does the
//! resampling and downmix and the recorder's conditioner passes them through.
//! The call output is recorded from the default sink's monitor source;
//! per-process capture does not exist here, so `OutputTarget::Process` falls
//! back to that monitor as well.
//! The call output is recorded from the default sink's monitor source, or
//! from the source named by `OutputTarget::Device`.
use std::sync::atomic::{AtomicBool, Ordering};
use std::time::Instant;
@@ -49,7 +48,7 @@ pub fn mic_source(device: Option<&str>) -> Box<dyn CaptureSource> {
pub fn output_source(target: OutputTarget) -> Box<dyn CaptureSource> {
let device = match target {
OutputTarget::Process { .. } | OutputTarget::DefaultRender => DEFAULT_MONITOR.to_owned(),
OutputTarget::DefaultRender => DEFAULT_MONITOR.to_owned(),
OutputTarget::Device(name) => name,
};
Box::new(PulseSource {