diff --git a/src/alstream.cpp b/src/alstream.cpp index 9d4ddad..7722c5f 100644 --- a/src/alstream.cpp +++ b/src/alstream.cpp @@ -233,6 +233,7 @@ struct ALStreamOpenHandler : FileSystem::OpenHandler return true; } +#ifndef __EMSCRIPTEN__ if (!strcmp(sig, "MThd")) { shState->midiState().initIfNeeded(shState->config()); @@ -244,7 +245,6 @@ struct ALStreamOpenHandler : FileSystem::OpenHandler } } -#ifndef __EMSCRIPTEN__ source = createSDLSource(*srcOps, ext, STREAM_BUF_SIZE, looped); #endif } diff --git a/src/fluid-fun.cpp b/src/fluid-fun.cpp index d91da4f..c58cbde 100644 --- a/src/fluid-fun.cpp +++ b/src/fluid-fun.cpp @@ -26,10 +26,6 @@ static void *so; void initFluidFunctions() { -#ifdef __EMSCRIPTEN__ - goto fail; -#endif - #ifdef SHARED_FLUID #define FLUID_FUN(name, type) \ diff --git a/src/sharedstate.cpp b/src/sharedstate.cpp index fc19376..7eb4995 100644 --- a/src/sharedstate.cpp +++ b/src/sharedstate.cpp @@ -152,10 +152,12 @@ struct SharedStatePrivate TEXFBO::allocEmpty(gpTexFBO, globalTexW, globalTexH); TEXFBO::linkFBO(gpTexFBO); +#ifndef __EMSCRIPTEN__ /* RGSS3 games will call setup_midi, so there's * no need to do it on startup */ if (rgssVer <= 2) midiState.initIfNeeded(threadData->config); +#endif } ~SharedStatePrivate()