From 8ccde4e7c0b0884d32aded2a98d2187f19682c36 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 24 Nov 2025 10:14:22 -0500 Subject: audio: add scheduling, and optimize atomic operations --- game/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'game/src') diff --git a/game/src/lib.rs b/game/src/lib.rs index f20ece2..3a1389f 100644 --- a/game/src/lib.rs +++ b/game/src/lib.rs @@ -80,7 +80,8 @@ impl Game { pub fn run(&mut self) { // debug music - self.window.audio().data.explore.play(); + let track = self.window.audio().data.explore.clone(); + self.window.audio().schedule(track, 1); // Main game loop while self.window.is_open() { -- cgit v1.2.3-freya