X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=snd_bsd.c;h=ce4c26d5241381dcd9794a268e312f94f2fb8df5;hb=d1986a0cb01eaeab540d54fde3e8a9f8128ce3c2;hp=5735013af33c26d885c4a5edb0c5df9400506ac7;hpb=ad40941adf0fe050fcc609b588cc05266bf26b84;p=xonotic%2Fdarkplaces.git diff --git a/snd_bsd.c b/snd_bsd.c index 5735013a..ce4c26d5 100644 --- 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) {