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