openbsd-ports/games/xblast/patches/patch-xbsndsrv_c

25 lines
627 B
Plaintext
Raw Normal View History

$OpenBSD: patch-xbsndsrv_c,v 1.3 2007/12/20 22:03:05 ajacoutot Exp $
--- xbsndsrv.c.orig Mon Jun 12 13:06:36 2006
+++ xbsndsrv.c Sun Dec 16 15:37:02 2007
@@ -75,6 +75,9 @@
#ifdef HAVE_LINUX_SOUNDCARD_H
2005-07-17 04:53:54 -04:00
#include <linux/soundcard.h>
#endif
+#ifdef __OpenBSD__
+#include <soundcard.h>
+#endif
#endif
@@ -263,6 +266,10 @@ static struct _sound_name
#define SAMPLE_CHANNELS 2
#define SAMPLE_SIZE 16
#define SUN_AUDIO_REF 0
+#elif __OpenBSD__
2005-07-17 04:53:54 -04:00
+#define SOUND_DEVICE "/dev/sound"
+#define SAMPLE_CHANNELS 1
+#define SAMPLE_SIZE 8
#else
2005-07-17 04:53:54 -04:00
#define SOUND_DEVICE "/dev/dsp"
#define SAMPLE_CHANNELS 1