From f8c4d6a5f1bd4bcaee43ba3e1373465cd960cdc3 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 28 Mar 2026 00:32:35 +0300 Subject: feat: add per-agent sound overrides --- src/sound.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/sound.rs') diff --git a/src/sound.rs b/src/sound.rs index f4123e10..e184d02c 100644 --- a/src/sound.rs +++ b/src/sound.rs @@ -40,9 +40,10 @@ fn play_bytes(data: &[u8]) -> Result<(), String> { Command::new("afplay").arg(&tmp).output() } else { // Try paplay (PulseAudio) first, fall back to aplay (ALSA) - Command::new("paplay").arg(&tmp).output().or_else(|_| { - Command::new("aplay").arg(&tmp).output() - }) + Command::new("paplay") + .arg(&tmp) + .output() + .or_else(|_| Command::new("aplay").arg(&tmp).output()) }; let _ = std::fs::remove_file(&tmp); -- cgit v1.2.3