diff --git a/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp b/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp index d9b52d283..f996bf895 100644 --- a/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp +++ b/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp @@ -31,7 +31,11 @@ int strcasecmp(const char* a, const char* b) { return ca - cb; } #define MINIAUDIO_IMPLEMENTATION +#ifndef __EMSCRIPTEN__ #include "miniaudio.h" +#else +#include "../../Emscripten/miniaudio.h" +#endif // __EMSCRIPTEN__ #undef STB_VORBIS_HEADER_ONLY #include "stb_vorbis.c" #endif @@ -2425,4 +2429,4 @@ ConsoleSoundEngine::ScheduledSound::ScheduledSound(int iSound, float x, float y, this->volume = volume; this->pitch = pitch; this->delay = delay; -} \ No newline at end of file +} diff --git a/Minecraft.Client/meson.build b/Minecraft.Client/meson.build index fe9945e4a..6ed01f57f 100644 --- a/Minecraft.Client/meson.build +++ b/Minecraft.Client/meson.build @@ -60,7 +60,7 @@ is_emscripten = host_machine.system() == 'emscripten' emcc_link_args = [] if is_emscripten - emcc_link_args += ['--preload-file', meson.global_source_root() + '/build/Minecraft.Client/Common@Common'] + emcc_link_args += ['--preload-file', meson.global_source_root() + '/build/Minecraft.Assets@Common'] endif client_dependencies = [