]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_bsd.c
fix stupid quake precision problem with PF_vectoangles (it rounded pitch to integer!)
[xonotic/darkplaces.git] / snd_bsd.c
index 5735013af33c26d885c4a5edb0c5df9400506ac7..ce4c26d5241381dcd9794a268e312f94f2fb8df5 100644 (file)
--- a/snd_bsd.c
+++ b/snd_bsd.c
@@ -45,12 +45,17 @@ static qbyte writebuf [SND_BUFF_SIZE];
 qboolean SNDDMA_Init (void)
 {
        unsigned int i;
-       const char *snddev = _PATH_SOUND;
+       const char *snddev;
        audio_info_t info;
 
        memset ((void*)shm, 0, sizeof (*shm));
 
        // Open the audio device
+#ifdef _PATH_SOUND
+       snddev = _PATH_SOUND;
+#else
+       snddev = "/dev/sound";
+#endif
        audio_fd = open (snddev, O_WRONLY | O_NDELAY | O_NONBLOCK);
        if (audio_fd < 0)
        {