From baae7dbc38ad4e131c107d9f0f638530ac250e2e Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 17 Nov 2025 10:02:56 -0500 Subject: wasm support! --- graphics/src/audio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/src/audio.rs') diff --git a/graphics/src/audio.rs b/graphics/src/audio.rs index 3a20f62..981defb 100644 --- a/graphics/src/audio.rs +++ b/graphics/src/audio.rs @@ -4,7 +4,7 @@ use raylib::audio::RaylibAudio; macro_rules! load_audio { ($handle:expr, $filepath:expr) => { - if cfg!(feature = "static") { + if cfg!(any(feature = "static", target_arch = "wasm32")) { let bytes = include_bytes!(concat!("../../", $filepath)); let wave = $handle.new_wave_from_memory(".ogg", bytes)?; $handle.new_sound_from_wave(&wave)? -- cgit v1.2.3-freya