diff --git a/src/p_enemy.c b/src/p_enemy.c index 9235a1d0f134bbc42a65e061c30a9380ba97a093..6e931a70486df577e0efb0983d22357c552fb48f 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -11378,7 +11378,7 @@ void A_ConnectToGround(mobj_t *actor) mobj_t *work; fixed_t workz; fixed_t workh; - INT8 dir; + SINT8 dir; angle_t ang; INT32 locvar1 = var1; INT32 locvar2 = var2; @@ -11636,4 +11636,4 @@ void A_CheckFlags2(mobj_t *actor) if (actor->flags2 & locvar1) P_SetMobjState(actor, (statenum_t)locvar2); -} \ No newline at end of file +} diff --git a/src/sdl/Makefile.cfg b/src/sdl/Makefile.cfg index 58c4d0861f048c1b5f50e9c55aacaf26cb6557e1..57d594835d12e031b92e5a3252af498cfaf6b75d 100644 --- a/src/sdl/Makefile.cfg +++ b/src/sdl/Makefile.cfg @@ -80,7 +80,7 @@ ifdef NOMIXER else i_sound_o=$(OBJDIR)/mixer_sound.o OPTS+=-DHAVE_MIXER - SDL_LDFLAGS+=-lSDL2_mixer + SDL_LDFLAGS+=-lSDL2_mixer_ext endif ifdef SDL_TTF diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index 5211efe0af4c18d1c2daf43471eadd67962bf59a..32c168f9a2d6724df3e1fc0e19c752903c8f98a8 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -20,7 +20,7 @@ #pragma warning(default : 4214 4244) #endif -#include "SDL_mixer.h" +#include <SDL2/SDL_mixer_ext.h> /* This is the version number macro for the current SDL_mixer version: */ #ifndef SDL_MIXER_COMPILEDVERSION @@ -686,6 +686,9 @@ boolean I_StartDigSong(const char *musicname, boolean looping) if (loop_point != 0.0f) Mix_HookMusicFinished(music_loop); + + CONS_Printf("X Song length %.4f\n", Mix_GetMusicTotalTime(music)); + return true; } @@ -773,6 +776,7 @@ boolean I_SetSongTrack(int track) FUNCMATH void I_InitMIDIMusic(void) { + Mix_SetMidiPlayer(MIDI_Fluidsynth); } void I_ShutdownMIDIMusic(void) diff --git a/src/sdl/sdl_sound.c b/src/sdl/sdl_sound.c index 63b51c625415b043c09dcc8b3b8937af46f5be9c..38ed42fd346ab65810c62558c7328c3959278a55 100644 --- a/src/sdl/sdl_sound.c +++ b/src/sdl/sdl_sound.c @@ -32,7 +32,7 @@ #endif #ifdef HAVE_MIXER -#include "SDL_mixer.h" +#include <SDL2/SDL_mixer_ext.h> /* This is the version number macro for the current SDL_mixer version: */ #ifndef SDL_MIXER_COMPILEDVERSION #define SDL_MIXER_COMPILEDVERSION \