From fbe64f63dd31bba0bac826092832b7a79b3a8ad6 Mon Sep 17 00:00:00 2001 From: Del Wang Date: Mon, 29 Dec 2025 19:27:05 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BB=8E=E8=AE=BE=E5=A4=87=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=BB=98=E8=AE=A4=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/hello/src/bin/stereo.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/hello/src/bin/stereo.rs b/apps/hello/src/bin/stereo.rs index 11b77ac..bd28c5c 100644 --- a/apps/hello/src/bin/stereo.rs +++ b/apps/hello/src/bin/stereo.rs @@ -307,7 +307,6 @@ async fn run_slave(role: ChannelRole) -> Result<()> { channels: 1, frame_size: 960, bitrate: 32000, - playback_device: "plug:original_default".to_string(), ..AudioConfig::default() }; @@ -384,13 +383,8 @@ async fn run_slave(role: ChannelRole) -> Result<()> { continue; } - // 4. 初始化音频并开始播放 - setup_alsa_config()?; - let res = run_slave_audio_loop(stream, &config, clock).await; - cleanup_alsa_config(); - if let Err(e) = res { eprintln!("从设备音频循环出错: {:?}, 准备重连...", e); } else {