MojoAL enabled for static linking

This commit is contained in:
Joshua Granick
2018-07-13 14:53:32 -07:00
parent a4e2663d0a
commit f051a9adae
4 changed files with 4 additions and 5 deletions

View File

@@ -17,8 +17,7 @@
<define name="lime-howlerjs" if="html5" />
<define name="lime-html5" if="html5" />
<define name="lime-native" if="native" />
<define name="lime-openal" unless="lime-console || static_link || flash || html5" />
<define name="lime-openal" if="emscripten" />
<define name="lime-openal" unless="lime-console || flash || html5" />
<define name="lime-opengl" if="desktop" />
<define name="lime-opengles" if="emscripten || mobile" />
<define name="lime-vorbis" if="native" />

View File

@@ -25,7 +25,7 @@ namespace lime {
SDLApplication::SDLApplication () {
if (SDL_Init (SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER | SDL_INIT_TIMER | SDL_INIT_JOYSTICK) != 0) {
if (SDL_Init (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER | SDL_INIT_TIMER | SDL_INIT_JOYSTICK) != 0) {
printf ("Could not initialize SDL: %s.\n", SDL_GetError ());

View File

@@ -3042,7 +3042,7 @@ namespace lime {
#else
if (param == AL_BUFFER) {
data = (ALuint)(uintptr_t)(HL_CFFIPointer*)val->ptr;
data = (ALuint)(uintptr_t)((HL_CFFIPointer*)val)->ptr;
} else {