chore: 完善从节点连接提示音

This commit is contained in:
Del Wang
2026-01-01 13:05:06 +08:00
parent ab872180fc
commit 118c34eb5c
4 changed files with 19 additions and 7 deletions
+9 -2
View File
@@ -13,14 +13,21 @@ pub async fn run_stereo() -> Result<()> {
return Ok(());
}
let mode = &args[1];
let mode = if args[1].to_lowercase() == "master" {
"主节点"
} else {
"从节点"
};
let role = if args[2].to_lowercase() == "left" {
ChannelRole::Left
} else {
ChannelRole::Right
};
if mode == "master" {
println!("🚗 当前为: {} {}", mode, role.to_string());
if mode == "主节点" {
run_master(role).await
} else {
run_slave(role).await