# endif
#endif
- if (ioctl (audio_fd, AUDIO_SETINFO, &info) == 0)
- break;
+ if (ioctl (audio_fd, AUDIO_SETINFO, &info) != 0)
+ {
+ Con_Printf("Can't set up the sound device (%s)\n", snddev);
+ return false;
+ }
// TODO: check the parameters with AUDIO_GETINFO
// TODO: check AUDIO_ENCODINGFLAG_EMULATED with AUDIO_GETENC
if (ioctl (audio_fd, AUDIO_GETINFO, &info) < 0)
{
Con_Print("Error: can't get audio info\n");
- SNDDMA_Shutdown ();
+ SndSys_Shutdown ();
return 0;
}
static qboolean mouse_avail = true;
static qboolean vid_usingmouse = false;
-static qboolean vid_usingdgamouse = false;
static qboolean vid_usingvsync = false;
static qboolean vid_usevsync = false;
static qboolean vid_x11_hardwaregammasupported = false;
#if !defined(__APPLE__) && !defined(SUNOS)
cvar_t vid_dgamouse = {CVAR_SAVE, "vid_dgamouse", "1", "make use of DGA mouse input"};
+static qboolean vid_usingdgamouse = false;
#endif
qboolean vidmode_ext = false;
mouse_x = mouse_y = 0;
cl_ignoremousemoves = 2;
vid_usingmouse = true;
+#if !defined(__APPLE__) && !defined(SUNOS)
vid_usingdgamouse = !!vid_dgamouse.integer;
+#endif
}
}
else