]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
OpenBSD doesn't define _PATH_SOUND
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 31 Mar 2004 13:41:22 +0000 (13:41 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 31 Mar 2004 13:41:22 +0000 (13:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4068 d7cf8633-e32d-0410-b094-e92efae38249

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)
        {