Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

Fix the play-ahead import for wasm builds

Dylan M. Taylorc891630d38d7
diff --git a/crates/ui-egui/src/app/playback.rs b/crates/ui-egui/src/app/playback.rs
index 6ccafed55..042c62fb4 100644
--- a/crates/ui-egui/src/app/playback.rs
+++ b/crates/ui-egui/src/app/playback.rs
@@ -1,4 +1,6 @@
-use super::{AUDIO_RETRY_S, AUDIO_STALL_S, FilmcraftApp, Tick, frames, json, panels, play_ahead, shuttle};
+#[cfg(not(target_arch = "wasm32"))]
+use super::play_ahead;
+use super::{AUDIO_RETRY_S, AUDIO_STALL_S, FilmcraftApp, Tick, frames, json, panels, shuttle};
#[cfg(test)]
use filmcraft_engine::Session;