aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/audio.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-14 03:29:46 +0300
committerValentin Popov <valentin@popov.link>2026-11-14 03:29:46 +0300
commit6074e880f8c9b11ac380b2704b62a0f866e8b00a (patch)
treea36c2dab74a8dbe724c51eada9982d0418b554f3 /apps/fparkan-game/src/audio.rs
parent6d6645789c75a289255992abeb3bd809a2bb2363 (diff)
downloadfparkan-6074e880f8c9b11ac380b2704b62a0f866e8b00a.tar.xz
fparkan-6074e880f8c9b11ac380b2704b62a0f866e8b00a.zip
feat(game): pause the mission clock and scene
Diffstat (limited to 'apps/fparkan-game/src/audio.rs')
-rw-r--r--apps/fparkan-game/src/audio.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/fparkan-game/src/audio.rs b/apps/fparkan-game/src/audio.rs
index a89e2759..0d6a34f5 100644
--- a/apps/fparkan-game/src/audio.rs
+++ b/apps/fparkan-game/src/audio.rs
@@ -946,11 +946,6 @@ impl GameAudio {
}
}
- /// Focus callback used by the window event loop.
- pub(crate) fn on_focus_changed(&mut self, focused: bool) {
- self.set_paused(!focused);
- }
-
/// Stops all sources before the window/event loop exits.
pub(crate) fn shutdown(&mut self) {
self.ambient.stop();