return;
}
- if (Mix_OpenAudio(22050, AUDIO_S16, 2, 256) < 0)
+ if (Mix_OpenAudio(22050, AUDIO_S16, 2, 512) < 0)
{
Error(ERR_WARN, "Mix_OpenAudio() failed: %s", SDL_GetError());
sound_status = SOUND_OFF;
return;
}
- if ((sound_device = open(sound_device_name,O_WRONLY))<0)
+ if ((sound_device = OpenAudio(sound_device_name)) < 0)
{
Error(ERR_WARN, "cannot open sound device - no sounds");
sound_status = SOUND_OFF;
if (!LoadSound(&Sound[i]))
{
sound_status = SOUND_OFF;
+ sound_loops_allowed = FALSE;
return;
}
}
void InitJoysticks()
{
-#ifdef USE_SDL_LIBRARY
+#ifdef USE_SDL_JOYSTICK
static boolean sdl_joystick_subsystem_initialized = FALSE;
#endif
joystick_status = JOYSTICK_OFF;
-#ifdef USE_SDL_LIBRARY
+#ifdef USE_SDL_JOYSTICK
if (!sdl_joystick_subsystem_initialized)
{
joystick_status = JOYSTICK_AVAILABLE;
}
-#else /* !USE_SDL_LIBRARY */
+#else /* !USE_SDL_JOYSTICK */
#ifndef MSDOS
for (i=0; i<MAX_PLAYERS; i++)
for(j=0; j<*(ep2_num[i]); j++)
Elementeigenschaften2[(ep2_array[i])[j]] |= ep2_bit[i];
- for(i=EL_CHAR_START; i<EL_CHAR_END; i++)
+ for(i=EL_CHAR_START; i<=EL_CHAR_END; i++)
Elementeigenschaften1[i] |= (EP_BIT_CHAR | EP_BIT_INACTIVE);
}