Skip to content

Commit b0697ab

Browse files
committed
refactor: Update audio capture logging for Linux and enhance device selection logic
1 parent dd8dc93 commit b0697ab

3 files changed

Lines changed: 29 additions & 22 deletions

File tree

.claude/settings.local.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"Bash(cargo build:*)",
55
"Bash(npm run build)",
66
"Bash(cargo check:*)",
7-
"Bash(npm run check:*)"
7+
"Bash(npm run check:*)",
8+
"Bash(rustc --version --verbose:*)",
9+
"Bash(rustup show:*)",
10+
"Bash(rustup toolchain install:*)"
811
],
912
"deny": [],
1013
"ask": []

apps/desktop/package-lock.json

Lines changed: 19 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/desktop/src-tauri/src/adapters/audio/linux.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,12 @@ impl AudioCapturePort for PulseAudioCapture {
589589
// For Linux, dual capture is not yet fully implemented
590590
// For now, we prioritize the speaker device (loopback) if specified,
591591
// otherwise fall back to the microphone
592+
log::info!(
593+
"Linux dual capture: using single device mode (speaker: {:?}, mic: {:?})",
594+
speaker_device,
595+
microphone_device
596+
);
597+
592598
let device = speaker_device.or(microphone_device);
593599

594600
if device.is_none() {
@@ -597,12 +603,6 @@ impl AudioCapturePort for PulseAudioCapture {
597603
));
598604
}
599605

600-
log::info!(
601-
"Linux dual capture: using single device mode (speaker: {:?}, mic: {:?})",
602-
speaker_device,
603-
microphone_device
604-
);
605-
606606
// TODO: Implement true dual capture with mixing for Linux
607607
// For now, use single device capture
608608
self.start_capture(device).await

0 commit comments

Comments
 (0)