From 335bfe744d8b55765519739c190da0388164fc24 Mon Sep 17 00:00:00 2001 From: AlexKaravaev <30314738+AlexKaravaev@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:43:31 +0000 Subject: [PATCH] chore(ui): get back to idle after beacon and use 50 for volume (#318) --- ui/src/beacon.rs | 1 + ui/src/engine/diamond.rs | 2 +- ui/src/engine/pearl/mod.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/beacon.rs b/ui/src/beacon.rs index 9cd0d760..6790424d 100644 --- a/ui/src/beacon.rs +++ b/ui/src/beacon.rs @@ -13,5 +13,6 @@ pub async fn beacon(ui: &dyn Engine, duration: Duration) -> Result<()> { time::sleep(Duration::from_secs(1)).await; } + ui.idle(); Ok(()) } diff --git a/ui/src/engine/diamond.rs b/ui/src/engine/diamond.rs index 7f89ec55..e9cbab80 100644 --- a/ui/src/engine/diamond.rs +++ b/ui/src/engine/diamond.rs @@ -854,7 +854,7 @@ impl EventHandler for Runner { } Event::Beacon => { let master_volume = self.sound.volume(); - self.sound.set_master_volume(100); + self.sound.set_master_volume(50); self.sound.queue( sound::Type::Melody(sound::Melody::IrisScanningLoop01A), Duration::ZERO, diff --git a/ui/src/engine/pearl/mod.rs b/ui/src/engine/pearl/mod.rs index a35013f1..e01fd513 100644 --- a/ui/src/engine/pearl/mod.rs +++ b/ui/src/engine/pearl/mod.rs @@ -225,7 +225,7 @@ impl EventHandler for Runner { } Event::Beacon => { let master_volume = self.sound.volume(); - self.sound.set_master_volume(100); + self.sound.set_master_volume(50); self.sound.queue( sound::Type::Melody(sound::Melody::IrisScanningLoop01A), Duration::ZERO,