extern void I_InitTimidityConfig(void);
extern sound_module_t sound_sdl_module;
extern sound_module_t sound_pcsound_module;
+#ifdef FEATURE_SOUND
extern music_module_t music_sdl_module;
+#endif /* FEATURE_SOUND */
extern music_module_t music_opl_module;
// For OPL module:
{
int i;
+#ifdef FEATURE_SOUND
music_module = &music_sdl_module; return;
+#endif /* FEATURE_SOUND */
/*for (i=0; music_modules[i] != NULL; ++i)
{
#ifndef __I_SWAP__
#define __I_SWAP__
+#ifdef FEATURE_SOUND
+
#include <SDL2/SDL_endian.h>
// Endianess handling.
#define doom_wtohs(x) (short int)(x)
#endif
+#else
+
+#define SHORT(x) ((signed short) (x))
+#define LONG(x) ((signed int) (x))
+
+#define SYS_LITTLE_ENDIAN
+
+#endif /* FEATURE_SOUND */
+
#endif