From 32e358df69953234986f8bc82e0093b841647851 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 15 Dec 2025 23:36:31 -0500 Subject: Fix AudioPlayingHandle --- crates/teleia/src/audio.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/teleia/src/audio.rs b/crates/teleia/src/audio.rs index cac010b..95bde1f 100644 --- a/crates/teleia/src/audio.rs +++ b/crates/teleia/src/audio.rs @@ -1,7 +1,7 @@ use std::collections::HashMap; #[cfg(target_arch = "wasm32")] -use std::{cell::RefCell, sync::{Arc, Mutex}}; +use std::sync::{Arc, Mutex}; #[cfg(target_arch = "wasm32")] pub struct Context { @@ -84,7 +84,7 @@ impl Audio { pub struct Assets { pub ctx: Context, pub audio: HashMap, - pub music_node: Option, + pub music_node: Option, } #[cfg(target_arch = "wasm32")] @@ -109,7 +109,7 @@ impl Assets { pub fn is_music_playing(&self) -> bool { if let Some(ms) = &self.music_node { - ms.buffer().is_some() + ms.node.buffer().is_some() } else { false } } -- cgit v1.2.3