589e0b92e0
- use module devel/gettext - rewrite DESCR ok aanriot@ (who *badly* kicked my ass at this game... yes Alex, you did!)
25 lines
627 B
Plaintext
25 lines
627 B
Plaintext
$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
|
|
#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__
|
|
+#define SOUND_DEVICE "/dev/sound"
|
|
+#define SAMPLE_CHANNELS 1
|
|
+#define SAMPLE_SIZE 8
|
|
#else
|
|
#define SOUND_DEVICE "/dev/dsp"
|
|
#define SAMPLE_CHANNELS 1
|